User:OsamaK/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
![]() | The accompanying .css page for this skin can be added at User:OsamaK/monobook.css. |
- Report page listing warnings and errors.
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Quick-delete.js&action=raw&ctype=text/javascript"><\/script>');
//[[MediaWiki talk:Quick-delete.js]]
addOnloadHook( function dontWatchUsertalk() {
if(location.href.indexOf("&fakeaction") != -1 && wgCanonicalNamespace == "User_talk")
{
document.editform.wpWatchthis.checked = false;
}
});
importScript("MediaWiki:UserMessages.js");
importScript("User:TheDJ/imagesource.js");
importScript("User:Patstuart/Flickrreview.js");
addOnloadHook( function dontWatchFlickr() {
if(location.href.indexOf("&functionName=flickrOK") != -1)
{
document.editform.wpWatchthis.checked = false;
}
});
//Adding tagging tabs
addOnloadHook(function addingTabs(){
if (wgNamespaceNumber == 6)
{
var temp = wgTitle.toLowerCase().split("\.");
var imageFormat = temp[temp.length-1];
switch (imageFormat)
{
case "jpeg":
case "jpg":
mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=edit&BadJPG=1&useskin=simple'", "{{BadJPG}}", "");
break;
case "gif":
mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=edit&BadGIF=1&useskin=simple'", "{{BadGIF}}", "");
break;
}
if (imageFormat != "svg") mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=edit&ShouldBeSVG=1&useskin=simple'", "{{ShouldBeSVG}}", "");
mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=edit&Ifr=1&useskin=simple'", "{{Ifr}}", "");
}
});