User:KockaAdmiralac/global.js

window.topLevelCat = 'Browse'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity", "Special:Log", "Special:Log/upload"];

var regularList = [ 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', ], adminList = [ 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', ];

importArticles({ type: 'script', articles: (regularList.concat((wgUserGroups.includes("sysop") ? adminList : []))) });

/** * Name:   Unnamed script for easier reporting vandalism on VSTF wiki * Author: KockaAdmiralac <1405223@gmail.com> * Description: *     Used for easier reporting vandalism on vstf * License: *     Do not redistribute or use without author's permission. *     Credit is obligatory * Status: In testing... */ $(function {   if(wgPageName === "Report:Vandalism" && wgCityId === "65099")    {        var data = {};        window.location.href.split("?")[1].split("&").forEach(function(el) {           split = el.split("="); data[split[0]] = decodeURIComponent(split[1]); }, this);       if(data.report === "yes")        {            var interval1 = setInterval(function {               if($("#vstf-report-vandalism").length > 0) {                   $("#vstf-report-vandalism").click; $("#wikiname").val(data.name); $("#wikiurl").val(data.url); $("#user").val(data.vandal); clearInterval(interval1); }           }, 500);        }    }    else if(wgCanonicalSpecialPageName === "Contributions")    {        var el = $("#contentSub"), html = el.html;        el.html(html.substring(0, html.length - 1) + " • Report to VSTF)"); } });