User:Gz260/monobook.js

// d:User:Yair rand/WikidataInfo.js //mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");

/* importScript('User:EDUCA33E/LiveRC.js'); importScript('User:Gz260/LiveRC.js');

// User:Lupin/popups.js

// importScript('User:Lupin/popups.js'); popupPreviewKillTemplates=false; popupPreviewRawTemplates=false; popupPreviewFirstParOnly=false;

/* function hiddencat { var cl = document.getElementById('catlinks');          if(!cl) return; var hc = document.getElementById('mw-hidden-catlinks'); if(!hc) return; var nc = document.getElementById('mw-normal-catlinks'); if(!nc) { var ahc = ' Categories :&#32; [+]  '; document.getElementById('catlinks').innerHTML = ahc + cl.innerHTML; } else if( isClass(hc, 'mw-hidden-cats-hidden') ) { var ahc = ' | [+]'; document.getElementById('mw-normal-catlinks').innerHTML += ahc; } } function toggleHiddenCats { var hc = document.getElementById('mw-hidden-catlinks'); if( isClass(hc, 'mw-hidden-cats-hidden') ) { removeClass(hc, 'mw-hidden-cats-hidden'); addClass(hc, 'mw-hidden-cat-user-shown'); document.getElementById('mw-hidden-cats-link').innerHTML = '[–]'; } else { removeClass(hc, 'mw-hidden-cat-user-shown'); addClass(hc, 'mw-hidden-cats-hidden'); document.getElementById('mw-hidden-cats-link').innerHTML = '[+]'; } } $(hiddencat);

function DateHour($) {   var dd = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); var m = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); var d=new Date; var weekday=d.getDay; var day=d.getDate; //   if (day == 1) { day = day + 'er'; } var month=d.getMonth; var year=d.getYear; if (year < 2000) { year += 1900; } var hour=d.getHours; var minute=d.getMinutes; var sec=d.getSeconds; if (minute < 10) { minute = '0' + minute; } if (sec < 10) { sec = '0' + sec; } var l = document.getElementById('siteNotice'); if (!l) return; var l2 = document.getElementById('siteNotice2'); if (l2) l.innerHTML = l2.innerHTML; l.innerHTML = ' ' + 'Today : ' + dd[weekday] + ', ' + m[month] + ' ' + day + ', ' + year + ' ' + hour + ':' + minute + ':' + sec + ' '    + ' '     + l.innerHTML + ' '; setTimeout(function{DateHour},1000); } $(DateHour);

function IsProtected($) { if (mw.config.get('wgCanonicalNamespace')=="Special") return; if (mw.config.get('wgCanonicalNamespace')=="MediaWiki") return; if (mw.config.get('wgArticleId')==0) return; if (mw.config.get('wgAction')!="view") return; var l_protect=mw.config.get('wgRestrictionEdit').length; var l = document.getElementById('contentSub'); if (!l) return; if (l_protect>0) { if (mw.config.get('wgRestrictionEdit')=="autoconfirmed"){ l.innerHTML = '' + 'This page is semi-protected.' + ' ' + l.innerHTML; } if (mw.config.get('wgRestrictionEdit')=="sysop"){ l.innerHTML = '<div style="clear:both; text-align:left; margin:0.25em 0 0.1em 0; padding:0.5em 0.5em; border:1px solid rgb(255,0,0); border-left:10px solid rgb(255,0,0); background-color:#FFFFFF; line-height:1.25; font-size:119%; color:#000000;" class="plainlinks">' + 'This page is <a href="/wiki/Wikipedia:Protection_policy#Full_protection" title="Wikipedia:Protection policy#Full protection">protected</a>.' + ' ' + l.innerHTML; } } else { l.innerHTML = '<div style="clear:both; text-align:left; margin:0.25em 0 0.1em 0; padding:0.5em 0.5em; border:1px solid rgb(128,255,128); border-left:10px solid rgb(128,255,128); background-color:#FFFFFF; line-height:1.25; font-size:119%; color:#000000;" class="plainlinks">' + 'This page is not protected.' + ' ' + l.innerHTML; } } $(IsProtected);

// importScript('User:Gz260/editcount.js');

// importScript('User:Pediapress/collection.js');

// History tools document.write('<script type="text/javascript" src="'             + '//en.wikipedia.org/w/index.php?title=User:Voice_of_All/History/monobook.js'              + '&action=raw&ctype=text/javascript&dontcountme=s"> ');