User:Ww2censor/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 can be added at User:Ww2censor/monobook.css. |
importScript('User:Δ/Copyvio Detection Candidates.js');
importScript("User:Ilmari Karonen/ifdthumbnails.js");
importScript('User:AWeenieMan/furme.js');
importScript('User:AWeenieMan/furmeScroller.js');
importScript('User:ais523/editcount.js');
importScript('User:Smith609/toolbox.js');
importScript('Wikipedia:AutoEd/complete.js');
// User:BrownHairedGirl/metadata.js - displays WikiProject assessments <nowiki>
importScript('User:BrownHairedGirl/metadatatest.js');
assessmentMyTemplateCode = ["{{WikiProject Ireland |class= |importance= |attention= |peer-review= |old-peer-review= |image-needed=yes |needs-infobox=yes }}", "{{WikiProject Philately |class= |importance= }}", "{{Motorcycling |class= |importance= |image-needed=no |needs-infobox=no |listas= }}", ];
assessmentDefaultProject = "WikiProject Ireland";
assessmentMarkAsMinor = true;
// </nowiki>
// adapted from TinEye gadget for Commons
// To use, add this to your user skin preferences file (probably User:YourUsername/monobook.js):
//
addOnloadHook( function() {
if ((mw.config.get('wgNamespaceNumber') != 6) || (mw.config.get('wgAction') != "view") || !document.getElementById('file')) return;
var links = document.getElementById('file').getElementsByTagName('a');
if (!links.length) return;
var imageurl = links[links.length-1].href; //imageboxes adds links _before_, so we get the last link
if (document.getElementById('file').getElementsByTagName('img')[0].width <= 300) {
imageurl = document.getElementById('file').getElementsByTagName('img')[0].src; //Image smaller than 300px width
} else { //Get thumb url
imageurl = imageurl.replace("/en/", "/en/thumb/");
imageurl = imageurl.replace("/commons/", "/commons/thumb/");
n = imageurl.lastIndexOf('/') + 1;
imageurl = imageurl + "/300px-" + imageurl.substring(n);
}
mw.util.addPortletLink('p-cactions', 'http://tineye.com/search?url=' + encodeURIComponent(imageurl), 'Tineye', 'ca-tineye');
});
/**** quick image delete ****/
importScript('User:Howcheng/quickimgdelete.js');
qid_autoSave = false;
importScript('User:Ohconfucius/script/formatgeneral.js'); //[[User:Ohconfucius/script/formatgeneral.js]]
// Module: revisionjumper.js Allows to jump between diffs and permanent links
mw.loader.load('//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript'); // [[MediaWiki:Gadget-revisionjumper.js]]
DelsortConfig = {
debugLevel : 0,
watchDelsortedLists : 1,
watchDelsortedAfd : 1,
shortcuts : ['Authors','Australia','Lists']
}