User:Gary/unwatch.js

if (wgCanonicalSpecialPageName && wgCanonicalSpecialPageName=='Watchlist' && wgAction=='view') $(function { var frm = document.getElementsByTagName('form')[0] frm.parentNode.insertBefore(document.createTextNode(' | '), frm) var lnk = document.createElement('a') lnk.appendChild(document.createTextNode('Unwatch…')) lnk.href = 'javascript:importScript("User:Alex_Smotrov/wlunwatch.js")' frm.parentNode.insertBefore(lnk, frm) })