User:Writ Keeper/Scripts/teahouseTalkbackLink.js: Difference between revisions

Content deleted Content added
feex
test
Line 12:
var $link = $($nodeList[i]);
var newLinkString = "<span class='reply-link-wrapper'>|";
var newLinkIdnewLinkHref = $link[0].title.replace(pdne, "") ;
var newLinkId = "TBsubmit" + i;
newLinkString += '<a href=' + (($link[0].href).replace("User_talk:", "Special:Contributions/")) + ' style="font-size:x-small; display:inline-block;">C</a>|'
newLinkString += '<a href="#' + newLinkIdnewLinkHref + '" style="font-size:x-small; display:inline-block;" title="Send a talkback!" noPopup=1 id="TBsubmit' + inewLinkId + '">TB</a>|</span>';
$($link).after(newLinkString)
$("#" + newLinkId).click(function (e)