User:Syunsyunminmin/global.js

//Navigation Popups mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

mw.loader.load("https://dev.miraheze.org/wiki/MediaWiki:Twinkle.js?action=raw&ctype=text/javascript");

function tool { var NSNumber = mw.config.get('wgNamespaceNumber'); var Pagename = mw.config.get('wgPageName'); var IPv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/; var IPv6 = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/; if ((NSNumber == -1 && mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Contributions') || (NSNumber == 2) || (NSNumber == 3)) { var username = mw.config.get('wgRelevantUserName'); if (username.match(IPv4) || username.match(IPv6)) { mw.util.addPortletLink( 'p-tb', 'https://whois-dev.toolforge.org/w/' + username + '/lookup', 'WHOIS','','WHOIS検索を行う'); mw.util.addPortletLink( 'p-tb', 'https://spur.us/context/' + username, 'ISProxy?','','プロクシかどうか確認する'); mw.util.addPortletLink( 'p-tb', 'https://awebanalysis.com/ja/ip-lookup/' + username + '/', 'Whois&Proxy','','WhoisとProxyチェックを行う'); }		else { mw.util.addPortletLink( 'p-tb', 'https://meta.miraheze.org/wiki/Special:CentralAuth/' + username, 'CentralAuth','','グローバルアカウント情報を確認する'); }	}	if (NSNumber != -1) { mw.util.addPortletLink( 'p-tb', '/w/index.php?title=Special:Log&page=' + Pagename, 'ページログ','','ページのログを確認する'); mw.util.addPortletLink( 'p-tb', mw.config.get('wgServer') + '/wiki/Special:PrefixIndex/' + Pagename, 'サブページ','','サブページを確認する'); } } tool;