Jump to content

User:Mdebets/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mdebets (talk | contribs) at 22:44, 23 March 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:AzaToth/twinkle.js');
importScript('User:Ioeth/friendly.js');
importScript('User:Cameltrader/Advisor.js');


// <nowiki>If you are editing a page, click the unref button on your tab bar to add "{{Unreferenced|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.

function doQunref() {
document.editform.wpTextbox1.value = '{' + '{' + 'Unreferenced|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = 'Marked as unreferenced.';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
}

addOnloadHook(function() {
if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
return;
}
if (document.editform) {
addPortletLink("p-cactions", "javascript:doQunref()", "unref", "ca-unref", "Mark as unreferenced", "");
}
});

// by [[User:Jj137|jj137]]
//