User:Spartaz/beta.js

// Script from User:ais523/editcount.js mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:ais523/editcount.js' + '&action=raw&ctype=text/javascript'); //popups // User:Lupin/popups.js mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript'); importScript("User:Lupin/recent2.js"); //DRV Closing script importScript("User:Lifebaka/closedrv.js"); // Interiot's tool2 mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' + '&action=raw&ctype=text/javascript'); // User:Steel359/protection.js importScript('User:Steel359/protection.js'); importScript('User:AzaToth/twinkle.js'); TwinkleConfig = { revertMaxRevisions             :       50, userTalkPageMode               :       'window', showSharedIPNotice             :       true, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert       :       false, openAOLAnonTalkPage            :       false, summaryAd                      :       " using TW", deletionSummaryAd              :       " using TW", protectionSummaryAd            :       " using TW", watchSpeedyPages               :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ], watchProdPages                 :       true, openUserTalkPageOnSpeedyDelete :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i5', 'i7', 'u3', 't1' ], watchRevertedPages             :       [ 'agf', 'norm', 'vand', 'torev' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       true, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, offerReasonOnNormalRevert      :       true}; //VoA stuff importScript('User:Voice_of_All/Addtabs/monobook.js'); importScript('User:Voice_of_All/replacetxt.js'); importScript('User:Voice_of_All/Specialadmin/monobook.js'); importScript('User:Voice_of_All/Bureaucrat/monobook.js'); importScript('User:Voice_of_All/History/monobook.js'); importScript('User:Voice_of_All/Sleeper/monobook.js'); importScript('User:Voice_of_All/Adminwarnings/monobook.js'); importScript('User:Voice_of_All/Deletion/monobook.js'); importScript('User:Voice_of_All/Google/monobook.js'); /**** afd helper ****/ document.write(' '); function Main { afd_helper; // You may include here other "extensions" } // User:Lupin/popups.js /* mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript'); function hidevfd{ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = "none"; document.getElementById('footer').style.display = 'none'; } function showvfd{ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = ""; document.getElementById('footer').style.display = ''; } function addlilink(tabs, url, name){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); li.appendChild(na); tabs.appendChild(li); return li; } function vfdlinks{ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){ addlilink(tabs, 'javascript:hidevfd', 'Hide'); addlilink(tabs, 'javascript:showvfd', 'Show'); } } if (window.addEventListener) window.addEventListener("load",vfdlinks,false); else if (window.attachEvent) window.attachEvent("onload",vfdlinks); // Script from User:ais523/editcount.js mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:ais523/editcount.js' + '&action=raw&ctype=text/javascript'); function checkall { if (document.getElementById('bodyContent')) {form = document.getElementById('bodyContent');} else if (document.getElementById('quickbar')) {form = document.getElementById('content');} l = form.getElementsByTagName('input'); for (i = 0 ; i < l.length; i++) { if (l[i].type == 'checkbox') {l[i].value = '1'; l[i].checked=true;} } } if (document.title.indexOf('View and restore deleted pages') != -1 && location.href.search(/&timestamp=|&action=submit/) == -1) { addTab("javascript:checkall", "Check all revisions", "ca-checkall", "Check all deleted revisions", ""); } // CSD AutoReason mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:^demon/csd.js' + '&action=raw&ctype=text/javascript'); // function filter_main { var lis = document.getElementById('bodyContent').getElementsByTagName('li'); var len = lis.length; for(var i=0; i<len; i++) { var li = lis[i]; if(li.getElementsByTagName('a')[1].innerHTML.indexOf(':') != -1) { //li.parentNode.removeChild(li); li.style.display = 'none'; } } } if(wgPageName == 'Special:Linksearch') { addOnloadHook(function { mw.util.addPortletLink('p-cactions', "javascript:void(filter_main)", "filter", 'ca-filter', 'Filter all pages on here to only be for mainspace'); }); } // importScript('User:Mr.Z-man/closeAFDtest.js'); importScript('User:Mr.Z-man/hideClosedAFD.js');