User:Danski14/monobook.js

From Wikipedia, the free encyclopedia

Note: After saving, you have to bypass your browser's cache to see the changes. Firefox/Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.

If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure of whether the code is safe, you can ask at the help desk.
// Filter changes live
// [[User:Lupin/recent2.js]] - please include this line
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


// [[User:Lupin/popups.js]]

importScript('User:Lupin/popups.js');

//Category Watcher (use sparingly)

importScript('User:Ais523/catwatch.js');

importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');

importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');  
importScript('Wikipedia:WikiProject User scripts/Scripts/Time'); 
importScript('User:Ais523/votesymbols.js');
     
importScript('User:Outriggr/metadatatest.js');
defaultProject = "WPBiography";
assessmentDefaultLiving = "yes" // (applies to WPBiography - defaults only if status cannot be determined from the article)

TwinkleConfig = {
        revertMaxRevisions              :       30,
        userTalkPageMode                :       'window',
        showSharedIPNotice              :       true,
        openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       false,
        summaryAd                       :       " using [[WP:TWINKLE|TW]]",
        deletionSummaryAd               :       " using [[WP:TWINKLE|TW]]",
        protectionSummaryAd             :       " using [[WP:TWINKLE|TW]]",
        watchSpeedyPages                :       [ ],
        openUserTalkPageOnSpeedyDelete  :       [ 'a7' ],
        watchRevertedPages              :       [ ],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev'],
        deleteTalkPageOnDelete          :       false,
        markWarningsAsMinor             :       true,
        markAIVReportAsMinor            :       true,
        markSpeedyPagesAsMinor          :       true,
        confirmUsernameToAIV            :       true
};

// [[User:Lupin/popups.js]]      
importScript('User:Lupin/popups.js');

 // [[User:Jsimlo/shortcuts.js]]
 document.write('<script type="text/javascript" src="'
             + 'http://en.wikipedia.org/w/index.php?title=User:Jsimlo/shortcuts.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

 function shortcutsInit ()
 {

  shortcutsAddLink ( 'Monobook.js', 'User:Danski14/monobook.js' );
  shortcutsAddLink ( 'TWINKLE', 'Wikipedia:WikiProject User scripts/Scripts/Twinkle' );
  shortcutsAddLink ( 'VandalProof', 'User:AmiDaniel/VP/Welcome' );
  shortcutsAddLink ( '---AIV---', 'WP:AIV' );
  shortcutsAddLink ( 'Stub Sorting', 'Wikipedia:WikiProject Stub sorting/Stub types' );
  shortcutsAddLink ( 'Misc', 'User:Danski14/misc' );

 }

// Script from [[User:Tra/userwatchlist.js]]
importScript('User:Tra/userwatchlist.js'); //[[User:Tra/userwatchlist.js]]


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

function doQwikify() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Wikify|' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked for wikification.';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     // wouldn't it make more sense to just check for wgCanonicalNamespace != "", or am I missing something?
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doQwikify()", "wikify", "ca-wikify", "Mark for wikification", "");
  }
});

// by [[User:Raylu|raylu]]
// 


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

function doQrefs() {
  document.editform.wpTextbox1.value = '{' + '{' + 'References|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked as needing references per [[WP:CITE]].';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     // wouldn't it make more sense to just check for wgCanonicalNamespace != "", or am I missing something?
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doQrefs()", "References", "ca-wikify", "Mark for as needing references", "");
  }
});

// by [[User:Raylu|raylu]]
// 


function doCleanup() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Cleanup-date|' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked for cleanup.';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doCleanup()", "cleanup", "ca-cleanup", "Mark for cleanup", "");
  }
});


function doNo() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Unencyclopedic}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked for as possibly [[WP|Not Notable]]';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doNo()", "Unencyclopedic", "ca-cleanup", "Unencyclopedic", "");
  }
});


function doPrimary() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Primarysources}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked as needing independent [[WP:CITE|sources]]';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doPrimary()", "Prime Source", "ca-cleanup", "Mark as needing secondary sources", "");
  }
});


function doNote() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Notability}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked as [[WP:N|possibly non-notable]]';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doNote()", "Notability", "ca-cleanup", "Mark for notability", "");
  }
});



function doImportance() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Importance}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked as [[WP:N|possibly non-notable]]';
  document.editform.wpMinoredit.checked = true;
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:doImportance()", "Importance", "ca-cleanup", "Mark for Importance", "");
  }
});


function submit(){
  document.editform.submit();
}

addOnloadHook(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     addPortletLink("p-cactions", "javascript:submit()", "Submit", "ca-cleanup", "Submit", "");
  }
});