Jump to content

User:OsamaK/monobook.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
No edit summary
Line 10: Line 10:


//Adding tagging tabs
//Adding tagging tabs
addOnloadHook(function tabs{
addOnloadHook(tabs);
function tabs(){
if (wgCanonicalNamespace == "Image")
if (wgCanonicalNamespace == "Image")
{
{
Line 24: Line 26:
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&uncommons=1&useskin=simple'", "{{Uncommons}}", "");
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&uncommons=1&useskin=simple'", "{{Uncommons}}", "");
}
}
});
}

Revision as of 01:59, 23 July 2008

// [[User:Lupin/popups.js]]
popupFixDabs=true;

// This is to keep track of who is using this extension: [[User:Howcheng/quickimgdelete.js]]
importScript('User:Howcheng/quickimgdelete.js');
qid_alwaysOpenNew = true;

// Script from [[User:MarkS/extraeditbuttons.js]]
importScript('User:MarkS/extraeditbuttons.js');

//Adding tagging tabs
addOnloadHook(tabs);

function tabs(){
if (wgCanonicalNamespace == "Image")
{
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&ShouldBeSVG=1&useskin=simple'", "{{ShouldBeSVG}}", "");
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&BadJPG=1&useskin=simple'", "{{BadJPG}}", "");
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&BadGIF=1&useskin=simple'", "{{BadGIF}}", "");
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&Ifr=1&useskin=simple'", "{{Ifr}}", "");
}

if (wgCanonicalNamespace == "User_talk")
{
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&editsummary=1&useskin=simple'", "{{Editsummary}}", "");
addPortletLink("p-cactions", "javascript:document.location = wgServer + wgScript + '?title=' + wgPageName + '&action=edit&uncommons=1&useskin=simple'", "{{Uncommons}}", "");
}
}