User:Phantomsteve/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Phantomsteve/monobook.css. |
///// Admin tools...
// Mass rollback
importScript('User:John254/mass rollback.js');
// Mr.Z-man's AfD closing script
importScript('User:Mr.Z-man/closeAFD.js');
notifyByDefaultDec = true; // notify if declined
importScript('User:Mr.Z-man/hideClosedAFD.js'); //hide closed AfDs
// A script that helps admins delete speedy deletions much more quickly
importScript('User:Ale_jrb/Scripts/csdhelper.js'); //[[User:Ale_jrb/Scripts]]
//Configuration for CSDHelper
var overwriteDeclineReasons = true;
var notifyByDefaultDel = true;
var logOnDecline = true;
var logOnDeclinePath = 'User:Phantomsteve/Admin/List of declined speedies';
var notifyByDefaultDec = true;
var notifyByDefaultPrd = true;
var notifyLimit = 15;
importScript('User:Phantomsteve/csdreasons.js'); // Set of custom decline and delete reasons
// End configuration
//[[User:Animum/easyblock.js]]
//importScript("User:Animum/easyblock.js");
//ebPrefs = {
// watchlistEnabled : true
//};
// Close AFD
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
//See [[User:Drilnoth/personallogs.js/doc]] for details
importScript('User:Drilnoth/personallogs.js');
// highlight admin talk etc
importScript('User:Plastikspork/adminrights.js'); //[[User:Plastikspork/adminrights.js]]
// [[User:Steel359/protection.js]] - Easily add responses to [[WP:RFPP]] and protection symbols to pages
importScript('User:Steel359/protection.js');
// StubTagTab - Allows to easily tag articles with correct stub tags from the stub sorting project
importScript('User:Ais523/stubtagtab2.js');
// Username highlighter - Highlights your username on all pages (to see where someone replied to you)
importScript('User:Ais523/highlightmyname2.js');
///// Non-admin tools...
// display only edits made by a certain user
importScript('User:Ale_jrb/Scripts/userhist.js'); //[[User:Ale_jrb/Scripts]]
// delsort
importScript('Wikipedia:WikiProject Deletion sorting/delsort.js');
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
// [[User:Dr pda/prosesize.js]]
importScript('User:Dr pda/prosesize.js');
importScript('User:Dr pda/persondata.js'); //[[User:Dr pda/persondata.js]]
// Hide/Show Huggle edits
function hidehugcontrib()
{
var i,li,a;
li=document.getElementById("bodyContent");
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].innerHTML.match(/\(\<a href=\"\/wiki\/Wikipedia:HG\" class=\"mw\-redirect\" title=\"Wikipedia:HG\"\>HG\<\/a\>/))
s="none";
else
s="";
if(a[t]!=undefined) s=a[t]; else a[t]=s;
if(s!="") li[i].style.display=(li[i].style.display=="none"?"list-item":"none");
}
}
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)
addPortletLink('p-cactions', 'javascript:hidehugcontrib()', 'show/hide huggle edits', 'ca-hidehug',
"Show/hide pages made using Huggle", '');
});
// AutoEd functions
importScript('Wikipedia:AutoEd/complete.js');
// Gracenote's Ameliorating Vandalism script
// importScript('User:Gracenotes/amelvand.js');
// Gracenote's Picture Marker: commented out as it doesn't seem to work
// importScript('User:Gracenotes/wpPicmark.js');
// Gracenote's Rollback Summary
importScript('User:Gracenotes/rollback.js');
// Cameltrader's Wiki advisor
importScript('User:Cameltrader/Advisor.js');
// DStoykov's DEFAULTSORT
importScript('User:DStoykov/defaultsort.js');
// Js's URL Decoder
importScript('User:Js/urldecoder.js');
// [[User:Dschwen/highlightredirects.js]] - please include this line
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// User:Bawolff/wiktLookup.js (double click on word for wikt lookup
//importScriptURI('http://en.wikinews.org/w/index.php?title=MediaWiki:Gadget-dictionaryLookupHover.js&action=raw&ctype=text/javascript');
//Wikipedia:WikiProject User scripts/Scripts/Watchlist since
// Adds a "Changes since last load" link to your watchlist.
addOnloadHook(function () {
if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;
var link = document.createElement('a');
link.id = 'listSince';
link.href = '#listSince'; // must have a href to show as link!
var then = +(new Date());
var fixLinkHref = function () {
var url = window.location.href.split('#')[0];
var days = (( +(new Date()) - then ) + (60 * 1000)) / (1000 * 3600 * 24);
if (url.match(/[?&]days=/))
this.href = url.replace(/([?&]days=)[^&]*/, '$1'+days);
else
this.href = url + (url.indexOf('?') < 0 ? '?':'&') + 'days=' + days;
return true;
};
link.onclick = fixLinkHref;
link.onmousedown = fixLinkHref; // react to middle clicks too
var frag = document.createDocumentFragment();
frag.appendChild(document.createTextNode(' | '));
frag.appendChild(link);
link.appendChild(document.createTextNode('Changes'));
frag.appendChild(document.createTextNode(' since last load.'));
// just one little ID attribute would be _so_ nice...
var nsSelectForm = document.getElementsByTagName('form')[0];
nsSelectForm.parentNode.insertBefore(frag, nsSelectForm);
});
// closexfd.js - a compilation of 5 scripts
// written by [[User:King of Hearts]], modified from
// [[Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js]] by [[User:Johnleemk]]
// and [[User:Lifebaka/closedrv.js]] by [[User:Lifebaka]]
importScript('User:Doug/closetfd.js');
importScript('User:King of Hearts/closeffd.js');
importScript('User:King of Hearts/closecfd.js');
importScript('User:King of Hearts/closerfd.js');
importScript('User:Doug/closemfd.js');
// Relist xFd (not AfD)
importScript('User:Phantomsteve/xfdrelist.js');
// TinEye (for identifying potential copyvio images
importScript('User:Twp/tineye.js');
//[[User:Wmahan/wpspell.js]] - removed as Wmahan's toolserver account isn't active
// importScript('User:Wmahan/wpspell.js');
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
dateFormat="british";
//fixedSidebar="never";
// Dropdown menu
importScript('User:Haza-w/cactions.js'); //[[User:Haza-w/cactions.js]]
// Dropdown menus options - N.B. make sure it shows wgScript not wgscript!
var cactions = {
itabs: true,
svars: Array(
['Email Oversight', wgScript+'?title=Special:EmailUser/Oversight'],
['New pages', wgScript+'?title=Special:NewPages&action=view'],
['New pages - oldest unpatrolled', wgScript+'?title=Special:NewPages&dir=prev&hidepatrolled=1'],
['New users', wgScript+'?title=Special:Log/newusers'],
['Unreferenced BLPs', wgScript+'?title=Category:Unreferenced_BLPs'],
['ANI', wgScript+'?title=Wikipedia:Administrators%27_noticeboard/Incidents'],
['RFCs', wgScript+'?title=Wikipedia:Requests_for_comment'],
['CSD criteria', wgScript+'?title=Wikipedia:Criteria_for_speedy_deletion'],
['User talk templates', wgScript+'?title=Wikipedia:Template_messages/User_talk_namespace'],
['My Deletion Contribs', wgScript+'?title=User:Phantomsteve/Editor/Deletions'],
['My Rfx Contribs', wgScript+'?title=User:Phantomsteve/Editor/Rfx contributions'],
['My RfA Questions', wgScript+'?title=User:Phantomsteve/RfA questions'],
['My RfA Standards', wgScript+'?title=User:Phantomsteve/RfA standards'],
['My Admin stuff', wgScript+'?title=User:Phantomsteve/Admin-stuff'],
['- blocks', wgScript+'?title=User:Phantomsteve/Admin/blocks'],
['- deletions', wgScript+'?title=User:Phantomsteve/Admin/deletions'],
['- permissions', wgScript+'?title=User:Phantomsteve/Admin/permissions'],
['- protections', wgScript+'?title=User:Phantomsteve/Admin/protections'],
['- summary', wgScript+'?title=User:Phantomsteve/Admin/summary'],
['XfD closing instructions', wgScript+'?title=Wikipedia:Deletion_process#Articles_for_deletion_page']),
tbusr: false,
xmlhr: true
};