Jump to content

User:ArielGold/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:Voice_of_All/Addtabs/monobook.js");

importScript("User:Voice_of_All/UTCclock.js");

importScript("User:Animum/count.js");

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

importScript('User:Tra/sidebartranslate.js'); //[[User:Tra/sidebartranslate.js]]

importScript("User:Lupin/recent2.js");

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

TwinkleConfig = {
        revertMaxRevisions              :       10,
        userTalkPageMode                :       'tab',
        showSharedIPNotice              :       false,
        openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       false,
        summaryAd                       :       " [[WP:TWINKLE|TW]]",
        deletionSummaryAd               :       " [[WP:TWINKLE|TW]]",
        protectionSummaryAd             :       " [[WP:TWINKLE|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              :       [ ],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       false,
        watchWarnings                   :       false,
        markAIVReportAsMinor            :       false,
        markSpeedyPagesAsMinor          :       false,
        offerReasonOnNormalRevert       :       true,
};


/*#### This area contains scripts only for Firefox ####*/
var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {

/* Put all scripts you want disabled only in Internet Explorer in this area. */

}

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

// [[User:Henrik/afc-helper]]
importScript('User:Henrik/js/afc-helper.js');

//////////STATUS CHANGER
// Creator: Misza13
// Credits: Voyagerfan5761 for some minor improvements

$(function (){
  var subpage = "/Status";
  var scheme = "/StatusTemplate";
  var linkprefix = mw.config.get('wgServer')+mw.config.get('wgScript')+"?title=User:";
  //Add the links
  addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=in", "In", "pt-status-in", "I'm in!", "", "pt-logout");
  addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=busy", "Busy", "pt-status-busy", "I'm busy!", "", "pt-logout");
  addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=out", "Out", "pt-status-out", "I'm out!", "", "pt-logout");
  if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?
  //Get new status
  statusRegExp = /&action=edit&newstatus=(.*)/;
  status = statusRegExp.exec(location.href)[1];
  //Modify the form
  document.getElementById('wpTextbox1').value = "{{User:"+wgUserName+scheme+"|"+status+"}}";
  switch (status) {
    case 'in':   status_cmt = 'Ariel is online now.'; break;
    case 'busy': status_cmt = 'Ariel is busy for a bit.'; break;
    case 'out':  status_cmt = 'Ariel is off to sleep, Good night!'; break;
  }
  document.getElementById('wpSummary').value = status_cmt;
  //Submit it!
  document.getElementById('editform').submit();
});

//

importScript('User:Omegatron/monobook.js/addlink.js');

importScript('User:Gimmetrow/fixRefs.js');

// History tools
mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Voice_of_All/History/monobook.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

//