Jump to content

User:Jj137/monobook.js

From Wikipedia, the free encyclopedia
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:Jj137/frcominfobox.js'); //[[User:Jj137/frcominfobox.js]]
$(function() {
  if (wgCanonicalNamespace == "Special") {
     return;
  }
   var item = mw.util.addPortletLink('p-cactions','','links','ca-links','Quick links','',null);
   var link=item.firstChild;
   link.onclick = function() {
       jsMsg('<form action="http://en.wikipedia.org/w/index.php">'+
'<table>' +
'<tr><th>Article<\/th><td><input name="title"><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/wiki/Special:Recentchanges">Recent changes</a><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/w/index.php?title=Category:Candidates_for_speedy_deletion&action=purge#Pages_in_category">CAT:CSD</a> | <a href="http://en.wikipedia.org/w/index.php?title=User:DumbBOT/ProdSummary&action=purge">PRODSUM</a><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/wiki/Wikipedia:Administrator_intervention_against_vandalism">WP:AIV</a> | <a href="http://en.wikipedia.org/wiki/Wikipedia:Usernames_for_administrator_attention">WP:UAA</a><\/td><\/tr>' +
'<tr><th><a href="http://tools.wikimedia.de/~agony/orphantalk/?l=en">Orphaned</a> (<a href="http://en.wikipedia.org/wiki/User:Jj137/Orphaned">page</a>)<\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/w/index.php?title=User:Jj137/monobook.js">monobook</a><\/td><\/tr>' +
'<tr><td colspan="2"><input type="submit"><\/td><\/tr><\/table>'+'<\/form>','links');
       return false;
   }
});

importScript('User:AzaToth/twinkle.js'); //[[User:AzaToth/twinkle.js]]

TwinkleConfig = {
revertMaxRevisions              :       75,
userTalkPageMode                :       'window',
showSharedIPNotice              :       true,
openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert        :       false,
summaryAd                       :       " ([[WP:TW|TW]])",
deletionSummaryAd               :       " ([[WP:TW|TW]])",
protectionSummaryAd             :       " ([[WP:TW|TW]])",
watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
watchProdPages                  :       true,
openUserTalkPageOnSpeedyDelete  :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages              :       [ 'vand' ],
markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete          :       false,
watchWarnings                   :       false,
markAIVReportAsMinor            :       true,
markSpeedyPagesAsMinor          :       true,
offerReasonOnNormalRevert       :       true,
orphanBacklinksOnSpeedyDelete   :       {orphan:true, exclude:['g6']}
};

importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:ais523/editcount.js'); //[[User:ais523/editcount.js]]
importScript('User:Jj137/general.js'); //[[User:Jj137/general.js]]
importScript('User:Jj137/RFPP.js'); //[[User:Jj137/RFPP.js]]
importScript('User:Jj137/archive.js'); //[[User:Jj137/archive.js]]
importScript('User:Ais523/stubtagtab.js'); //[[User:Ais523/stubtagtab.js]]
importScript('User:Jj137/france.js'); //[[User:Jj137/france.js]]
importScript('User:Jj137/stats.js'); //[[User:Jj137/stats.js]]

//<pre><nowiki>

// <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.</nowiki>
 
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();
}
 
$(function() {
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     return;
  }
  if (document.editform) {
     mw.util.addPortletLink("p-cactions", "javascript:doQunref()", "unref", "ca-unref", "Mark as unreferenced", "");
  }
});
// </pre></nowiki>
// by [[User:Jj137|jj137]]
//

importScript('User:Jnothman/afd helper/script.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');
importScript('User:Jj137/csd.js');

//

var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {
// [[User:Lupin/popups.js]] - please include this line 
importScript('User:Lupin/popups.js');

popupAdminLinks=true;
popupFixRedirs=true;
popupRedirAutoClick='wpSave';
popupFixDabs=true;
};