Nutza:WikiBayer/s.js
Erscheinungsbild
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
var serverName = mw.config.get( 'wgServerName' );
var name = encodeURI(mw.config.get( 'wgRelevantUserName' ));
var rsname = encodeURI(mw.config.get( 'wgRelevantPageName' ));
var linklinks = '<a href="https://' + serverName + '/wiki/Special:Block/'+ name +'" style=" font-weight: bold;font-size: 89%;">(BS)</a> <a href="https://' + serverName + '/wiki/Special:ChangeContentModel/'+ rsname +'" style="font-weight: bold;font-size: 89%;">(CCM)</a>';
var linkrechts = '<a style="font-weight: bold;font-size: 89%;" href="https://' + serverName + '/w/index.php?title=' + rsname +'&action=protect">(SS)</a> <a style="font-weight: bold;font-size: 89%;" href="https://' + serverName + '/w/index.php?title=Special:MergeHistory&target=' + rsname +'">(VGV)</a>';
function fastblockscript() {
var fastblock = document.createElement("a");
fastblock.innerHTML = " <span id='fastblocklink' style='font-size: 0.4em;'>(Benutzer sperren)</span>";
document.getElementById("firstHeading").appendChild(fastblock);
document.getElementById("fastblocklink").addEventListener( 'click', function () {
mw.loader.load( '//bar.wikipedia.org/w/index.php?title=Nutza:WikiBayer/js/block.js&action=raw&ctype=text/javascript' );
});}
function startsysopscripts() {
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:WikiBayer/Admintools.js&action=raw&ctype=text/javascript' );
if(mw.config.get("wgCanonicalNamespace") != "Special" ){
if(
mw.config.get('wgDBname') in {
barwiki:1,
metawiki:1,
wikidatawiki:1,
}
){}
else
{
mw.util.addPortletLink('mw-panel', 'https://' + mw.config.get( 'wgServerName' ) + '/w/index.php?title=' + mw.config.get('wgPageName') + '&action=delete&wpReason=Spam%20%5B%5B%3Ameta%3AGlobal%20sysops%7C%28global%20sysop%20action%29%5D%5D','Spam löschen', 'a-delete', 'Spamlöschen');
mw.util.addPortletLink('mw-panel', 'https://' + mw.config.get( 'wgServerName' ) + '/w/index.php?title=' + mw.config.get('wgPageName') + '&action=delete&wpReason=Test%20page%20%5B%5B%3Ameta%3AGlobal%20sysops%7C%28global%20sysop%20action%29%5D%5D','Test', 'a-delete', 'Test');
}
mw.util.addPortletLink(
'mw-panel', '#',
'Löschen (Auswahl)',
'deletescript',
'löschen',
'ä').addEventListener( 'click', function () {
mw.loader.load( '//bar.wikipedia.org/w/index.php?title=Nutza:WikiBayer/del.js&action=raw&ctype=text/javascript' );
});
}
mw.loader.load ('https://meta.wikimedia.org/w/index.php?title=User:WikiBayer/massblock.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRevdel.js&action=raw&ctype=text/javascript');
if (mw.config.get('wgCanonicalNamespace') === 'User' || mw.config.get('wgCanonicalNamespace') === 'User_talk') {
fastblockscript();
}
else if (mw.config.get('wgCanonicalNamespace') === 'Special' && mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
fastblockscript();}
}
if (mw.config.get('wgUserGroups').includes('sysop')) {
var element = document.getElementById("mw-head");
element.insertAdjacentHTML( 'afterbegin', '<div id="GSwiki" style="line-height: 25px;position: absolute;z-index:10;width:285px;position:absolute;top: 10%;left: 15%; background-color: #00cd00; color:black; box-shadow: 10px 10px 5px #757575;text-align: center;">' + linklinks + ' Administrator ' + linkrechts + '</div>' );
startsysopscripts();}
else if (mw.config.get('wgGlobalGroups').includes('global-sysop')) {
var element = document.getElementById("mw-head");
element.insertAdjacentHTML( 'afterbegin', '<div id="GSwiki" style="line-height: 25px;position: absolute;z-index:10;width:285px;position:absolute;top: 10%;left: 15%; background-color: dodgerblue; color:black; box-shadow: 10px 10px 5px black;text-align: center;">' + linklinks + ' global sysop ' + linkrechts + '</div>' );
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');
if(typeof(activeSysopsConfig) == 'undefined') activeSysopsConfig = {};
activeSysopsConfig.toolLinkMethod = 'mw-panel';
activeSysopsConfig.markWikisActiveSysopsLessThan = 10;
startsysopscripts();
}
else {mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:WikiBayer/ajaxrollbackwithreason.js&action=raw&ctype=text/javascript' );}
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WikiBayer/LogsonUserContribution.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WikiBayer/markblock.js&action=raw&ctype=text/javascript');
mw.loader.load( "https://bar.wikipedia.org/w/index.php?title=Nutza:WikiBayer/diff-permanentlink.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript");
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WikiBayer/fork/CVNSimpleOverlay wiki.js&action=raw&ctype=text/javascript');
//[[Benutzer:Schnark/js/dropdown.js]]
//Dokumentation unter [[Benutzer:Schnark/js/dropdown]] <nowiki>
/*global mediaWiki*/
var cpage = mw.config.get('wgPageName');
var dbname = mw.config.get('wgDBname');
var csprache;
var cprojekt;
switch (true) {
case /wikiquote/.test(dbname):
csprache = dbname.replace("wikiquote", "");
cprojekt = 'wikiquote';
break;
case /wikisource/.test(dbname):
csprache = dbname.replace("wikisource", "");
cprojekt = 'wikisource';
break;
case /wikiversity/.test(dbname):
csprache = dbname.replace("wikiversity", "");
cprojekt = 'wikiversity';
break;
case /wikinews/.test(dbname):
csprache = dbname.replace("wikinews", "");
cprojekt = 'wikinews';
break;
case /wiktionary/.test(dbname):
csprache = dbname.replace("wiktionary", "");
cprojekt = 'wiktionary';
break;
case /wikibooks/.test(dbname):
csprache = dbname.replace("wikibooks", "");
cprojekt = 'wikibooks';
break;
case /wikivoyage/.test(dbname):
csprache = dbname.replace("wikivoyage", "");
cprojekt = 'wikivoyage';
break;
case /wikimedia/.test(dbname):
csprache = dbname.replace("wikimedia", "");
cprojekt = 'wikimedia';
break;
case /wiki/.test(dbname):
csprache = dbname.replace("wiki", "");
cprojekt = 'wikipedia';
break;}
var copylink = 'https://copyvios.toolforge.org/?lang='+ csprache+ '&project='+ cprojekt +'&title='+ cpage +'&oldid=&action=search&use_engine=1&use_links=1&turnitin=1';
(function ($, mw) {
"use strict";
var dropdowns = {
'Missbrauchsfilter': {
'Meta Missbrauchsfilter': 'https://meta.wikimedia.org/wiki/Special:AbuseLog',
'barWiki Missbrauchsfilter': 'https://bar.wikipedia.org/wiki/Spezial:Missbrauchsfilter-Logbuch',
'barWiki Spamblacklist': 'https://bar.wikipedia.org/wiki/Spezial:Logbuch?type=spamblacklist&user=&page=&wpdate=&tagfilter=',
'Neuanmeldungslogbuch': 'https://' + serverName + '/w/index.php?title=Special:Log/newusers',
'deWiki Neuanmeldungslogbuch': 'https://de.wikipedia.org/wiki/Spezial:Logbuch/newusers',
'Neuanmeldungslogbuch (gesperrt)': 'https://' + serverName + '/w/index.php?title=Special:ListUsers&creationSort=1&desc=1',
},
'Benutzerinformationen': {
'Globale Benutzerkonteninformationen': 'https://meta.wikimedia.org/wiki/Special:CentralAuth/' + name,
'XTools': 'https://xtools.wmflabs.org/ec/' + serverName + '/' + name,
'GUC': 'https://tools.wmflabs.org/guc/?user=' + name,
'globalcontribs': 'https://xtools.wmflabs.org/globalcontribs/' + name,
'Benutzerrechte': 'https://' + mw.config.get( 'wgServerName' ) + '/wiki/Special:ListUsers?username=' + name + '&limit=1',
'Stalktoy': 'https://tools.wmflabs.org/meta/stalktoy/' + name,
'Bullseye/IP': 'https://bullseye.toolforge.org/ip/' + name,
'erstellte Artikel': 'https://xtools.wmflabs.org/pages/' + serverName + '/' + name,
'gUser search': 'https://tools.wmflabs.org/meta/gusersearch/?name=%5Cb' + name + '&show_locked=on&show_hidden=on®ex=on&icase=on',
'Rechteänderungen': '//xtools.wmflabs.org/ec-rightschanges/' + serverName + '/' + name,
'CrossActivity': 'https://tools.wmflabs.org/meta/crossactivity/' + name,
'Benutzerseiten': 'https://tools.wmflabs.org/meta/userpages/?user=' + name + '&all=on',
'Global User Search': 'https://tools.wmflabs.org/meta/gusersearch/',
'Beiträge vergleichen': 'https://tools.wmflabs.org/sigma/editorinteract.py?server=' + dbname,
'IP Range berechnen': 'https://nativeforeigner.com/calc/'
},
'Anfrageseiten': {
'Globale Sperren': 'https://meta.wikimedia.org/wiki/Steward_requests/Global',
'SRM': 'https://meta.wikimedia.org/wiki/Steward_requests/Miscellaneous',
'VM (DE)': 'https://de.wikipedia.org/wiki/Wikipedia:Vandalismusmeldung',
'CU (DE)': 'https://de.wikipedia.org/wiki/Wikipedia:Checkuser/Anfragen',
'GSR': 'https://meta.wikimedia.org/wiki/Global_sysops/Requests',
'Oversightanfrage (DE)': 'https://de.wikipedia.org/wiki/Spezial:E-Mail_senden/Oversight-Email',
'Adminanfragen (DE)': 'https://de.wikipedia.org/wiki/Wikipedia:Administratoren/Anfragen',
'Adminanfragen (Data)': "https://www.wikidata.org/wiki/Wikidata:Administrators'_noticeboard",
'Löschanträge Global':'https://meta.wikimedia.org/wiki/Global_sysops/Speedy_delete_requests',
'Meta-Admin': 'https://meta.wikimedia.org/wiki/Meta:Requests for help from a sysop or bureaucrat',
},
'Sonstiges': {
'Metalöschanträge': 'https://meta.wikimedia.org/wiki/Category:Deleteme',
'Globale Berechtigungen': 'https://meta.wikimedia.org/wiki/Steward_requests/Global_permissions',
'WikiCon': 'https://WikiCon.org',
'Löschbot': 'https://meta.wikimedia.org/wiki/Global_sysops/Speedy_delete_requests/Data',
'Gadgets': 'https://' + mw.config.get( 'wgServerName' ) + '/w/index.php?title=Special:Gadgets',
'Copyvio': copylink,
'Löschanträge (Data)': "https://www.wikidata.org/w/index.php?title=Wikidata:RFD",
'Globale Suche': 'https://global-search.toolforge.org/',
'kaputte Weiterleitungen': 'https://' + mw.config.get( 'wgServerName' ) + '/w/index.php?title=Special:BrokenRedirects',
'Kurze Seiten': 'https://' + mw.config.get( 'wgServerName' ) + '/w/index.php?title=Special:ShortPages'
}
};
function init () {
var html = '', d, e, href, hasOwn = Object.prototype.hasOwnProperty;
for (d in dropdowns) {
if (hasOwn.call(dropdowns, d)) {
html += '<div><select size="1" style="width: 100%;" class="schnark-select">' +
mw.html.element('option', {value: ''}, d);
for (e in dropdowns[d]) {
if (hasOwn.call(dropdowns[d], e)) {
href = dropdowns[d][e];
if (!href.match(/^(?:https?:)?\/\//)) {
href = mw.util.getUrl(href);
}
html += mw.html.element('option', {value: href}, e);
}
}
html += '</select></div>';
}
}
$('#mbl-logbuch').append(html);
$('select.schnark-select').on('change', function () {
var val = this.value;
if (val) {
document.location.href = val;
}
});
}
mw.hook('userjs.load-script.dropdown').fire(dropdowns);
$.when(mw.loader.using('mediawiki.util'), $.ready).then(init);
})(jQuery, mediaWiki);
(function() {
$(document).ready(function() {
mw.loader.using( ['mediawiki.util'], function() {
// show shortcuts if not editing
if (!mw.config.get('wgEditMessage')) {
mw.util.addPortletLink('mw-panel', 'https://' + mw.config.get( 'wgServerName' ) + '/wiki/Special:Log?type=spamblacklist','Spamblacklist', 'sbl-logbuch', 'Spamblacklist');
mw.util.addPortletLink('mw-panel', 'https://' + mw.config.get( 'wgServerName' ) + '/wiki/Special:AbuseLog','Missbrauchsfilter', 'mbl-logbuch', 'Missbrauchsfilter');
mw.util.addPortletLink('mw-panel', '/wiki/Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50', 'Administratoren');
mw.util.addPortletLink('mw-panel', 'https://xtools.wmflabs.org/adminstats/' + mw.config.get( 'wgServerName' ) , 'Administats', 'adminstats', 'Adminstats');
if(mw.config.get("wgCanonicalSpecialPageName") == "Contributions" ){
username = mw.config.get( 'wgRelevantUserName' );
if(mw.util.isIPAddress(username)) {
mw.util.addPortletLink('p-tb', 'https://tools.wmflabs.org/whois/gateway.py?lookup=true&ip=' + username, 'WMF-Labs Whois');
mw.util.addPortletLink('adminstats', 'https://ipcheck.toolforge.org/index.php?&dbname=barwiki&ip=' + username, 'Proxycheck');
let links = $('#contentSub .mw-contributions-user-tools > .mw-changeslist-links');
let targetUser = mw.config.get( 'wgRelevantUserName' );
links.html( links.html() + '<span><a href="https://ipcheck.toolforge.org/index.php?&dbname=metawiki&ip=' + targetUser + '">Proxycheck</a></span>');
links.html( links.html() + '<span><a href="https://meta3.toolforge.org/stalktoy/' + targetUser + '">Stalktoy</a></span>');
mw.util.addPortletLink('p-navigation', 'https://bullseye.toolforge.org/ip/' + username, 'Bullseye');
mw.util.addPortletLink('p-navigation', 'http://www.anti-abuse.org/multi-rbl-check-results/?host=' + username, 'Anti-abuse');
mw.util.addPortletLink('p-tb', 'https://whatismyipaddress.com/ip/' + username, 'Geolocate');
mw.util.addPortletLink('p-personal', 'http://getipintel.net/free-proxy-vpn-tor-ip-lookup/', 'GetIPIntel', 'getipintel', 'GetIPintel.net','g', '#pt-uls');
mw.util.addPortletLink('p-views', 'https://www.ipqualityscore.com/free-ip-lookup-proxy-vpn-test/lookup/' + username, 'ipqualityscore');
}}
else {
let links = $('#contentSub .mw-contributions-user-tools > .mw-changeslist-links');
let targetUser = mw.config.get( 'wgRelevantUserName' );
links.html( links.html() + '<span><a href="/w/api.php?action=query&list=users&ususers=' + targetUser + '&usprop=groupmemberships|editcount|rights|registration|emailable&format=json">ApiAnfrage</a></span>');
links.html( links.html() + '<span><a href="https://meta3.toolforge.org/stalktoy/' + targetUser + '">Stalktoy</a></span>');
}
return;
}
});
});
}());
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript');
// [[File:Perhelion/userstatus.js]]
if ( [ 2, 3 ].indexOf( mw.config.get( 'wgNamespaceNumber' ) ) !== -1 && ( !mw.config.get( 'wgArticleId' ) || mw.config.get( 'wgAction' ) === 'view' ) )
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () {
mw.util.addPortletLink(
'mw-panel', '#',
'Benutzer Informationen',
't-mworg2',
'Lade Benutzerinformationen',
'm',
'#t-print' ).addEventListener( 'click', function () {
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Perhelion/userstatus.js&action=raw&ctype=text/javascript' );
});
});
mw.loader.load ('https://meta.wikimedia.org/w/index.php?title=User:DannyS712/AccountsCreated.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/FindIPActivity.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/LiveEditsGlobal.js&action=raw&ctype=text/javascript');