User:Dalric/monobook.js

//

importScript('User:MarkS/extraeditbuttons.js');

importScript('User:Misza13/viewSource.js');

importScript('User:AzaToth/twinkle.js');

// Dynamic Unwatch loader 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); })

// Bookmarks in toolbox // nicked from User:Lupin/recent2.js

var toolboxtools = { bookmarks : [ {       url:   "http://en.wikipedia.org/w/index.php?hideliu=1&title=Special%3ARecentchanges&namespace=0", title: 'RC filtered', id:   'tbt_rc_filtered' },     {        url:   "http://en.wikipedia.org/w/index.php?title=Special:Newpages&hidebots=1&hidepatrolled=1", title: 'NP filtered', id:   'tbt_np_filtered' }   ] };

toolboxtools.addlilink=function(tabs, url, name, id, title, key){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); if(id) { if(key && title) ta[id] = [key, title]; else if(key)    ta[id] = [key, '']; else if(title)  ta[id] = ['', title]; }   // re-render the title and accesskeys from existing code in wikibits.js    akeytt; return li; }; toolboxtools.addToolboxLink=function(url, name, id){ var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; toolboxtools.addlilink(tb, url, name, id); };

window.addToolboxBookmarks = function { for( var i=0; i<toolboxtools.bookmarks.length; i++ ) { var tbtb = toolboxtools.bookmarks[i]; toolboxtools.addToolboxLink( tbtb.url, tbtb.title, tbtb.id ); } };

$(addToolboxBookmarks);

//