User:LizardSock/monobook.js

From wikishia

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// [[User:Voice_of_All/Addtabs/monobook.js]]
importScript('User:Voice_of_All/Addtabs/monobook.js');

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

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

// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');

// install [[WP:TWINKLE]] to system
importScript('User:AzaToth/twinkle.js');

//
// Edit tools for the vandal whack-a-mole game
// [[User:Kbh3rd/whackamole.js]] - please include this line
//
document.write('<script type="text/javascript" src="' 
+ 'http://en.wikipedia.org/w/index.php?title=User:Kbh3rd/whackamole.js' 
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// [[User:Henrik/live-edit-counter]]
importScript('User:Henrik/js/live-edit-counter.js');

// Extra edit buttons, [[User:MarkS/Extra_edit_buttons]]
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]]

/**** welcome new user ****/
document.write('<script type="text/javascript"' +
'src="http://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' +
'&action=raw&ctype=text/javascript&dontcountme=s"></script>');

//The welcome template you are wanting to use
var welcome_msg = 'welcomeg&#124;name=FastLizard4'


// [[User:Ais523/votesymbols.js]]
// Code for adding icons to !votes in AfDs, RfAs, etc.. Doesn't affect the page, just
// shows the icons when this code is installed.
// Please see [[:Image:Votesymbols.js-enhanced_SfD.png]] for copyright info on the images that are added.
 
function lowerNoPunct(s)
{
  return s.toLowerCase().split('.').join('').split(',').join('').split(':').join('').split(';').join('').split('+').join('');
}
 
addOnloadHook(function() {
  if(wgNamespaceNumber==-2) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==-1) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==1) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==2) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==3) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==6) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==7) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==8) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==9) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==10) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==11) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==12) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==13) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==14) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==15) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==100) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==101) return; //avoid user space, generally speaking
  if(wgNamespaceNumber==0) return; //avoid article space, generally speaking
  var vs=
  "http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/15px-Symbol_support_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/15px-Symbol_keep_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/15px-Symbol_oppose_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/15px-Symbol_delete_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/15px-Symbol_neutral_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Symbol_merge_vote.svg/15px-Symbol_merge_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Symbol_move_vote.svg/15px-Symbol_move_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Symbol_redirect_vote.svg/15px-Symbol_redirect_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Symbol_opinion_vote.svg/15px-Symbol_opinion_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Symbol_note.svg/15px-Symbol_note.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/Symbol_unsupport_vote.svg/15px-Symbol_unsupport_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_question.svg/15px-Symbol_question.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Symbol_divide_vote.svg/15px-Symbol_divide_vote.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Symbol_wait.svg/15px-Symbol_wait.svg.png#"+
  "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/15px-Face-grin.svg.png";
  var vt=vs.split("#");
  var la=new Array();
  la['support']=0; la['endorse']=0;
  la['keep']=1;
  la['oppose']=2; la['overturn']=2; la['object']=2;
  la['delete']=3;
  la['neutral']=4;
  la['merge']=5; la['upmerge']=5;
  la['move']=6; la['rename']=6; la['userfy']=6; la['transwiki']=6;
  la['redirect']=7;
  la['opinion']=8;
  la['relist']=8;
  la['subst']=8; 
  la['salt']=8;
  la['change']=8;
  // Note that icon 8 on the list is often used for debate-specific !votes
  la['comment']=9;
  la['update']=9;
  la['note']=9;
  la['delist']=10;
  la['question']=11;
  la['split']=12;
  la['wait']=13;
  la['bjaodn']=14;
 
  var btc=document.body.getElementsByTagName("B");
  i=btc.length;
  while(i--)
  {
    var j,k;
    j=btc[i].innerHTML.split("<").join(" ").split(">").join(" ").split("/").join(" ").split(" ");
    k=0;
    var x="";
    while(k<j.length)
    {
      if(lowerNoPunct(j[k])=="don't"||lowerNoPunct(j[k])=='not'
       ||lowerNoPunct(j[k])=='no'||lowerNoPunct(j[k])=='without') break;
      var l=la[lowerNoPunct(j[k])];
      if(l!=undefined)
      {
        x+="<IMG SRC='"+vt[l]+"' /> "
      }
      k++;
    }
    if(x!="") btc[i].innerHTML=x+btc[i].innerHTML;
  }
});
//[[Category:Wikipedia scripts]]

// New page patrol
importScript('User:TheJosh/Scripts/NewPagePatrol.js');

importScript('User:Misza13/viewSource.js');

importScript('User:Ioeth/friendly.js');
FriendlyConfig = {
summaryAd                       :       " using [[WP:FRIENDLY|Friendly]]",
topWelcomes                     :       false,
watchWelcomes                   :       false,
markWelcomesAsMinor             :       false,
insertHeadings                  :       true,
welcomeHeading                  :       "== Welcome to Wikipedia! ==",
insertUsername                  :       true,
insertSignature                 :       true,
quickWelcomeMode                :       "semiauto",
quickWelcomeTemplate            :       "Welcomeg",
groupByDefault                  :       true,
watchTaggedPages                :       true,
markTaggedPagesAsMinor          :       false
};

//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
document.write('<script type="text/javascript" src="' 
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' 
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }

importScript('User:Mr.Z-man/gsearch.js');

importScript('User:AWeenieMan/furme.js');
importScript('User:AWeenieMan/furmeScroller.js');

importScript('User:Mr.Z-man/refbuttons.js');