Zum Inhalt springen

Nutza:WikiBayer/s.js: Unterschied zwischen den Versionen

Aus Wikipedia
Inhalt gelöscht Inhalt hinzugefügt
Keine Bearbeitungszusammenfassung
De Seitn is glaart worn.
Markierung: Geleert
 
Zein 1: Zein 1:
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' );
});
}
else {
mw.loader.load ('https://meta.wikimedia.org/w/index.php?title=User:WikiBayer/massblock.js&action=raw&ctype=text/javascript');
mw.loader.load ('https://meta.wikimedia.org/w/index.php?title=User:WikiBayer/MassRevDelete.WikiBayer&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') {
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:WikiBayer/deleteusername.js&action=raw&ctype=text/javascript' );
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/markblock.js&action=raw&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&regex=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);

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' ) )

var links = document.querySelectorAll('a');

for (var i = 0; i < links.length; i++) {

if (links[i].href.includes('/Special:Log/')) {
links[i].style.color = '#104E8B';
}
}

Aktuelle Version vo 24. August 2024, 15:03 Uhr.