Cannabis Ruderalis

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:Anomie/util.js');
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]

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

TwinkleConfig.watchRatedPhilPages = true;
TwinkleConfig.batchdeleteChunks				=	50;
TwinkleConfig.batchDeleteMinCutOff			=	5;
TwinkleConfig.batchMax					=	5000;
TwinkleConfig.batchProtectChunks			=	50;
TwinkleConfig.batchProtectMinCutOff			=	5;
TwinkleConfig.batchundeleteChunks			=	50;
TwinkleConfig.batchUndeleteMinCutOff			=	5;
TwinkleConfig.blankTalkpageOnIndefBlock			=	false;
TwinkleConfig.defaultWarningGroup			=	1;
TwinkleConfig.deleteTalkPageOnDelete			=	false;
TwinkleConfig.deletionSummaryAd				=	' using	[[WP:TW|TW]]';
TwinkleConfig.deliChunks				=	500;
TwinkleConfig.deliMax					=	5000;
TwinkleConfig.markAIVReportAsMinor			=	true;
TwinkleConfig.markSockReportAsMinor			=	true;
TwinkleConfig.markUAAReportAsMinor			=	true;
TwinkleConfig.markRevertedPagesAsMinor			=	[ 'vand' ];
TwinkleConfig.markSpeedyPagesAsMinor			=	false;
TwinkleConfig.markSpeedyPagesAsPatrolled		=	true;
TwinkleConfig.notifyUserOnDeli				=	true;
TwinkleConfig.notifyUserOnSpeedyDeletionNomination	=	[ 'g1',	'g2', 'g3', 'g4', 'g10', 'g11',	'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f10', 'f11', 'u3', 't2', 't3', 'p2'	];
TwinkleConfig.offerReasonOnNormalRevert			=	true;
TwinkleConfig.openTalkPage				=	[ 'agf', 'norm', 'vand'	];
TwinkleConfig.openTalkPageOnAutoRevert			=	false;
TwinkleConfig.openUserTalkPageOnSpeedyDelete		=	[ 'g1',	'g2', 'g3', 'g4', 'g5',	'g10', 'g11', 'g12', 'a1', 'a3', 'a7', 'a9', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f11', 'u3', 't2' ];
TwinkleConfig.orphanBacklinksOnSpeedyDelete		=	{exclude:['g6'], orphan:true};
TwinkleConfig.proddeleteChunks				=	50;
TwinkleConfig.prodReasonDefault				=	"";
TwinkleConfig.protectionSummaryAd			=	' using	[[WP:TW|TW]]';
TwinkleConfig.revertMaxRevisions			=	50;
TwinkleConfig.showRollbackLinks				=	[ 'diff', 'others' ];
TwinkleConfig.showSharedIPNotice			=	true;
TwinkleConfig.speedyWindowHeight                        =       500;
TwinkleConfig.speedyWindowWidth                         =       800;
TwinkleConfig.summaryAd					=	' using	[[WP:TW|TW]]';
TwinkleConfig.unlinkNamespaces				=	[ 0, 100 ];
TwinkleConfig.userTalkPageMode				=	'window';
TwinkleConfig.watchProdPages				=	true;
TwinkleConfig.watchRevertedPages			=	[ 'agf', 'norm', 'vand', 'torev' ];
TwinkleConfig.watchSpeedyPages				=	[ 'g3',	'g5', 'g10', 'g11', 'g12', 't1'	];
TwinkleConfig.watchWarnings				=	true;
TwinkleConfig.welcomeUserOnSpeedyDeletionNotification	=	TwinkleConfig.notifyUserOnSpeedyDeletionNomination;
TwinkleConfig.xfdWatchDiscussion			=	"default";
TwinkleConfig.xfdWatchList				=	"no";
TwinkleConfig.xfdWatchPage				=	"default";
TwinkleConfig.xfdWatchUsages				=	"no";
TwinkleConfig.xfdWatchUser				=	"default";

DelsortConfig = {
debugLevel : 0,
watchDelsortedLists : 1,
watchDelsortedAfd : 1,
shortcuts : ['Authors','Philosophy','Lists']
}

// [[User:Dschwen/highlightredirects.js]] - please include this line
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


var wlUnwatch = {
    supported:true,
    onLoad:function(){
        if(!document.forms[0] || !document.forms[0].namespace) return;
        var links=document.getElementById('content').getElementsByTagName('a');
        var j;
        for(var i=links.length-1; i>=0; i--){
            if(/[?&]action=history([&#]|$)/.test(links[i].href)){
                j=i;
            } else if(/\/Special:Log\//.test(links[i].href)){
                j=i+4;
            } else {
                continue;
            }
            var m=links[j].href.match(/title=([^&]*)/);
            if(!m) continue;
            var a=document.createElement('A');
            a.href=mw.config.get('wgServer')+mw.config.get('wgScript')+'?action=unwatch&title='+m[1];
            a.title=wgAjaxWatch.unwatchMsg+' '+links[j].title;
            a.unwatchInProgress=false;
            a.onclick=wlUnwatch.onClick;
            a.appendChild(document.createTextNode('unw'));
            links[i].parentNode.insertBefore(a, links[i].nextSibling);

            // insert a delimiter between the two links
            var d=document.createTextNode('\xa0| ');
            links[i].parentNode.insertBefore(d, a);
        }
    },

    onClick:function(){
        if(!wlUnwatch.supported) return true;
        var obj=this;
        if(obj.unwatchInProgress) return false;
        if(!wfSupportsAjax()){
            wlUnwatch.supported=false;
            return true;
        }
        obj.unwatchInProgress=true;
        obj.style.color='red';
        var timeout=setTimeout(function(){
            timeout=null;
            obj.unwatchInProgress=false;
            obj.style.color='';
        }, 10000);
        sajax_do_call('wfAjaxWatch',
            [decodeURIComponent(obj.href.match(/&title=(.+)/)[1]), 'u'],
            function(req){
                if(timeout) clearTimeout(timeout);
                timeout=null;
                obj.unwatchInProgress=false;
                obj.style.color='';
                if(!/^<u#>/.test(req.responseText)) return;
                var li;
                for(li=obj; li && li.nodeName!='LI'; li=li.parentNode);
                if(li) li.parentNode.removeChild(li);
            });
        return false;
    }
};

if(wgCanonicalSpecialPageName && wgCanonicalSpecialPageName=="Watchlist" && wgAction=='view'){
    if(doneOnloadHook) wlUnwatch.onLoad(); //if imported dynamically
    else addOnloadHook(wlUnwatch.onLoad)
}

Leave a Reply