Difference between revisions of "User:GuoPC/common.js"

From Moegirlpedia
Jump to: navigation, search
(Created page with "// HotCat mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript'); // IPE mw.loader.load('https://cdn.jsdelivr...")
 
m
Line 1: Line 1:
// HotCat
+
// HotCat loaded from ZhMGP
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
+
mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + '/index.php?title=MediaWiki:Gadget-HotCat.js');
  
 
// IPE
 
// IPE
mw.loader.load('https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/script.min.js');
+
mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit@latest/dist/InPageEdit.min.js');
  
// Navigation popups
+
// PersonalLabel based on [[zhmoe:User:AnnAngela/js/PersonalLabel.js]]
mw.loader.load('//en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
+
$(function() {
 +
    $('#pt-watchlist').after('<li id="pt-sandbox"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/User:' + mw.config.get("wgUserName") + '/Sandbox">My sandbox</a></li><li id="pt-personlog"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/Special:log/' + mw.config.get("wgUserName") + '">My logs</a></li>');
 +
});
  
// Syntax Highlighter
+
// SyntaxHighlighter loaded from ZhMGP
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript');
+
mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + '/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js');
 +
 
 +
// Wikiplus
 +
mw.loader.load('https://wikiplus-app.com/Main.min.js');

Revision as of 01:16, 27 January 2021

// HotCat loaded from ZhMGP
mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + '/index.php?title=MediaWiki:Gadget-HotCat.js');

// IPE
mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit@latest/dist/InPageEdit.min.js');

// PersonalLabel based on [[zhmoe:User:AnnAngela/js/PersonalLabel.js]]
$(function() {
    $('#pt-watchlist').after('<li id="pt-sandbox"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/User:' + mw.config.get("wgUserName") + '/Sandbox">My sandbox</a></li><li id="pt-personlog"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/Special:log/' + mw.config.get("wgUserName") + '">My logs</a></li>');
});

// SyntaxHighlighter loaded from ZhMGP
mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + '/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js');

// Wikiplus
mw.loader.load('https://wikiplus-app.com/Main.min.js');