Jump to content

User:Machine Elf 1735/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Machine Elf 1735 (talk | contribs) at 01:23, 19 June 2011 (eieio). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
(function(jQuery,c){ 
 var ex,nott=function(ret){
    try {
        if (typeof window.wgNoticeToggleState=='undefined'||window.wgNoticeToggleState) 
              c.log('wgNoticeToggleState=false', window.wgNoticeToggleState=false);
		return ret;
    } catch(ex) { c.log('ex', ex); }
  },doa=function(ret){ return function insertBanner(bannerBanner) {
    try {
        if (bannerBanner) c.log(bannerBanner,'die, die, die');
        if (bannerBanner = document.getElementById('centralNotice')) 
            c.log(
             '#centralNotice.innerHTML=', 
                bannerBanner.innerHTML, 
                bannerBanner.innerHTML='',
             '=""');
             c.log(
               'geoiplookup.wikimedia.org=""', 
               (ex=$('script').filter(function(i,a){
                    return a.src && a.src=="http://geoiplookup.wikimedia.org/"||false;
               })||[]).length? (ex.outerHTML=""):"!");
        return nott(ret);
    } catch(ex) { c.log('ex', ex); }
  };},bb=function() { return function ddd() {
    var rip=doa()+'',fn;
    try {
        if (window.insertBanner+''!=rip) 
            c.log('insertBanner=doa()', 
                 (window.insertBanner=doa(jQuery||null))('Only 13 more seconds to wait and...'));
        if (jQuery.centralNotice&&(fn=jQuery.centralNotice.fn)) {
            if (fn.loadBanner+''!=rip || fn.loadBannerList+''!=rip || fn.chooseBanner+''!=rip) {
                c.log('loadBanner=doa()', fn.loadBanner=doa());
                c.log('loadBannerList=doa()', fn.loadBannerList=doa());
                c.log('chooseBanner=doa()', fn.chooseBanner=doa(false));
            }
        }
        return nott(false);
    } catch(ex) { c.log('ex', ex); }
  };},vett=function(x,s) {
    return bb()()
	  || s.url.indexOf('Special:Banner')   != -1 
	  || s.url.indexOf('Special%3ABanner') != -1
	     ? jqxhr.abort() || true : false;
  },b=bb();
 jQuery(b()||b);
 jQuery.ajaxSetup({ timeout:500
   ,ajaxSend: function(e, jqxhr, settings ){ return !vett(jqxhr,settings); }
   ,beforeSend: function( jqxhr, settings ){ return !vett(jqxhr,settings); }
 });
})(jQuery,console||{ log:function(){} });