User:The wub/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. If this is a .js page, the code will be executed when previewing the page.
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.
//
// imports
//
importScript('User:Quarl/util.js');
importScript('User:Quarl/wikipage.js');
 
// AfD closing script
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
 
// [[WP:TWINKLE]] scripts
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinkleimage.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinkleprod.js');
importScript('User:AzaToth/twinklexfd.js');
 
// [[WP:FRIENDLY]] article tagging
importScript('User:Ioeth/friendlytag.js');
 
// FurMe ([[User:AWeenieMan/furme]]) - for adding fair use rationales
importScript('User:AWeenieMan/furme.js');
importScript('User:AWeenieMan/furmeScroller.js');
 
// [[User:TheDJ/HotCat]]
importScript('User:TheDJ/Gadget-HotCat.js');
 
// Deletion Sorting (relies on TWINKLE)
importScript('Wikipedia:WikiProject Deletion sorting/delsort.js');
 
// CfD closing script (under development)
importScript('User:The wub/CloseCFD.js');
 
 
//
// Add custom toolbox links
//
function add_toolbox_links() {
  addPortletLink ('p-tb', '/wiki/User:The_wub/toolkit', 'Toolkit');
  addPortletLink ('p-tb', '/wiki/User:The_wubbot/notes', 'Bot notes');
  addPortletLink ('p-tb', '/wiki/Special:Contributions/The_wubbot', 'Bot contribs');
}
 
addOnloadHook(add_toolbox_links);
 
 
//
// add duplicate tabs to bottom of pages
//
function bottomlinks() {
  var tabs = document.getElementById('p-cactions').cloneNode(true);
  tabs.id = 'mytabs';
  var listitems = tabs.getElementsByTagName('LI');
  for (i=0;i<listitems.length;i++) {
    if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
  }
  document.getElementById('column-content').appendChild(tabs);
}
if (window.addEventListener) window.addEventListener("load",bottomlinks,false);
else if (window.attachEvent) window.attachEvent("onload",bottomlinks);
 
 
//