User:Bradv/monobook.js
From Wikipedia, the free encyclopedia
If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
importScript('User:Bradv/sidebar.js'); //importScript('User:AzaToth/twinkle.js'); //Twinkle //importScript('User:Ioeth/friendlytag.js'); //Friendly (tag) //importScript('User:Ioeth/friendlywelcome.js'); //Friendly (welcome) importScript('user:js/watchlist.js') //importScript('User:Lupin/recent2.js'); //Monitor recent changes / watchlist //importScript('User:Ais523/watchlistnotifier.js'); //Notifies of changes to watchlist at top of page //importScript('User:Mr.Z-man/patrollinks.js'); //Patrol links on new pages //importScript('User:Tra/userwatchlist.js'); //[[User:Tra/userwatchlist.js]] - User watchlist //importScript('User:Bradv/catlist.js'); //importScript('User:Bradv/NewPagePatrol.js'); //Forked from TheJosh in order to ignore redirects //importScript('User:TheJosh/Scripts/RecentChangesPatrol.js'); // #### Wikipedia:WikiProject User scripts/Scripts/Search links - This script adds search links to the toolbox. addOnloadHook(function () { if (wgCanonicalNamespace == "Special") return; // no links for special pages var title = wgTitle; if (wgCanonicalNamespace != "") title = title.replace(/^.*\//, ""); // subpage name only var query = encodeURIComponent('"'+title+'" -Wikipedia' ); addPortletLink('p-tb', 'http://www.google.com/search?&q='+query, 'Google', 't-googlesearch', 'Search Google for "'+title+'"', 'W'); addPortletLink('p-tb', 'http://news.google.com/archivesearch?&as_price=p1&as_src=-newswire+-wire+-presswire+-PR+-press+-release&q='+query, 'Google News', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N'); addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=3&q='+query, 'Google Books', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B'); addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query, 'Google Scholar', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S'); }); // #### [[User:Ais523/topcontrib.js]] - This script color-codes lines according to who has the top contribution for a page. addOnloadHook(function () { if((location.href.indexOf("Special:Contributions")!=-1|| location.href.indexOf("Special%3AContributions")!=-1) &&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1) { var i,li,a; li=document.getElementById("bodyContent"); //li.getElementsByTagName("ul")[0].tagName="ol"; li=li.getElementsByTagName("li"); i=-1; a=new Array(); while(++i<li.length) { var s,t; t=li[i].innerHTML.match(/"\/wiki\/([^"]*)"/)[1]; if(li[i].getElementsByTagName("strong").length>0) s="#CCCCFF"; else s="#FFCCCC"; if(a[t]!=undefined) s=(a[t]=="#CCCCFF"?"#CCFFFF":"#FFFFCC"); else a[t]=s; li[i].innerHTML="<SPAN STYLE='background-color:"+s+"'>"+li[i].innerHTML+"</SPAN>"; } } });

