Skip to content

Commit

Permalink
Update 4 files
Browse files Browse the repository at this point in the history
- Remove styles for borders of headers and buttons (vector.css).
- Minor fixes.
  • Loading branch information
GuoPCinGitHub committed Aug 10, 2023
1 parent 13f015c commit b8a1558
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 39 deletions.
26 changes: 13 additions & 13 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,47 +46,47 @@ if ($.inArray(mw.config.get('wgCanonicalSpecialPageName'), ['Watchlist', 'Recent
}

// mwPanel
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:AnnAngela/js/mwPanel.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:AnnAngela/js/mwPanel.js&action=raw&ctype=text/javascript');

// watchlist-toggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:AnnAngela/js/watchlist-toggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:AnnAngela/js/watchlist-toggle.js&action=raw&ctype=text/javascript');

// upload-log-toggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:AnnAngela/js/upload-log-toggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:AnnAngela/js/upload-log-toggle.js&action=raw&ctype=text/javascript');

// watchlist-log
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:AnnAngela/js/watchlist-log.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:AnnAngela/js/watchlist-log.js&action=raw&ctype=text/javascript');

// OneKeyPurge
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:BearBin/js/OneKeyPurge.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:BearBin/js/OneKeyPurge.js&action=raw&ctype=text/javascript');

// code-prettify
mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-code-prettify.min.js');
mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-code-prettify.min.css', 'text/css');

// PreLangMark
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Bhsd/js/PreLangMark.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Bhsd/js/PreLangMark.js&action=raw&ctype=text/javascript');

// Wikiplus-replace
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:東東君/js/Wikiplus-replace.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:東東君/js/Wikiplus-replace.js&action=raw&ctype=text/javascript');

// disambigHelper
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Iehcni/js/disambigHelper.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Iehcni/js/disambigHelper.js&action=raw&ctype=text/javascript');

// MarkAsResolved
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Leranjun/js/MarkAsResolved.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Leranjun/js/MarkAsResolved.js&action=raw&ctype=text/javascript');

// Wordcount
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:星海子/js/Wordcount.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:星海子/js/Wordcount.js&action=raw&ctype=text/javascript');

// BgInfo
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/BgInfo.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/BgInfo.js&action=raw&ctype=text/javascript');

// MouseRippleToggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/MouseRippleToggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/MouseRippleToggle.js&action=raw&ctype=text/javascript');

// WatchlistNoRed
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/WatchlistNoRed.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/WatchlistNoRed.js&action=raw&ctype=text/javascript');

// Yaku Han JP
mw.loader.load('https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp.min.css', 'text/css');
Expand Down
6 changes: 3 additions & 3 deletions moeskin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ $('.site-logo-area > a').attr('href', '/User:GuoPC/M');
$('.site-logo, #footer-copyright-text img').attr('src', $('.site-logo').attr('src').replace('9/95/MoegirlPedia-Title.png', '3/33/MoegirlPedia-Title.svg'));

// CustomSidenavIcon
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/CustomSidenavIcon.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/CustomSidenavIcon.js&action=raw&ctype=text/javascript');

// MoeIndicators
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/MoeIndicators.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/MoeIndicators.js&action=raw&ctype=text/javascript');

// MoeMobileFloatToolbar
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/MoeMobileFloatToolbar.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/MoeMobileFloatToolbar.js&action=raw&ctype=text/javascript');
13 changes: 1 addition & 12 deletions vector.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ h2 .mw-headline {font-family: "SHSerif Full-Width Quotation", "Linux Libertine",

/* Customized headers */
h1, h2, h3, h4, h5, h6 {color: #222;}
h1 {border-bottom: 2px solid #8ED598 !important;}
h2 {border-bottom: 1px solid #8ED598 !important;}
.home-card-header h2 {border-bottom: none !important;}
.mw-body-content h2 {padding-top: .1em;}

/* Customized buttons, inputs & selects */
Expand All @@ -34,11 +31,6 @@ button, input, select {
border-radius: 2px;
transition: border .3s;
}
button:hover, input:hover, select:hover {border: 1px solid #C7EACC;}
button:focus, input:focus, select:focus {
border: 1px solid transparent;
outline: 2px solid #8ED598;
}

/* Customized personal label */
#p-personal {
Expand Down Expand Up @@ -66,10 +58,7 @@ button:focus, input:focus, select:focus {

/* Customized panel */
#mw-panel .portal .body {background-image: none !important;}
#mw-panel .portal h3 {
border-bottom: 1px solid #8ED598;
color: #222 !important;
}
#mw-panel .portal h3 {color: #222 !important;}

/* Customized navigation, based on [[U:あめろ/vector.css]] */
#mw-head-base {margin-bottom: .6em;}
Expand Down
23 changes: 12 additions & 11 deletions vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,38 @@ window.inspector = {
};

// UserStatus
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:AnnAngela/js/userStatus.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:AnnAngela/js/userStatus.js&action=raw&ctype=text/javascript');

// PersonalLabel,基于[[U:AnnAngela/js/PersonalLabel.js]]
$('#pt-watchlist').after(
'<li id="pt-overstock"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/分类:积压工作" title="归类为积压工作的内容[Alt+Shift+o]" accesskey="o">积压工作</a></li>\
<li id="pt-datareport"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/分类:萌娘百科数据报告" title="展示统计报告[Alt+Shift+d]" accesskey="d">数据报告</a></li>\
<li id="pt-mysandbox"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/User:' + mw.config.get("wgUserName") + '/Sandbox" title="您的个人沙盒页面[Alt+Shift+s]" accesskey="s">我的沙盒</a></li>\
<li id="pt-mylog"><a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/Special:log/' + mw.config.get("wgUserName") + '" title="您执行的所有公开日志[Alt+Shift+g]" accesskey="g">我的日志</a></li>');
'<li id="pt-overstock"><a href="' + '/分类:积压工作" title="归类为积压工作的内容[Alt+Shift+o]" accesskey="o">积压工作</a></li>' +
'<li id="pt-datareport"><a href="' + '/分类:萌娘百科数据报告" title="展示统计报告[Alt+Shift+d]" accesskey="d">数据报告</a></li>' +
'<li id="pt-mysandbox"><a href="' + '/User:' + mw.config.get("wgUserName") + '/Sandbox" title="您的个人沙盒页面[Alt+Shift+s]" accesskey="s">我的沙盒</a></li>' +
'<li id="pt-mylog"><a href="' + '/Special:log/' + mw.config.get("wgUserName") + '" title="您执行的所有公开日志[Alt+Shift+g]" accesskey="g">我的日志</a></li>'
);

// Inspector
if (mw.config.get( 'wgIsArticle' )) {
mw.loader.using( 'mediawiki.util' ).then(function() {
$(mw.util.addPortletLink('p-cactions', '#', 'Inspector', 'bhsd-inspector')).click(function(e) {
e.preventDefault();
this.remove();
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Bhsd/js/inspect.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Bhsd/js/inspect.js&action=raw&ctype=text/javascript');
});
});
}

// HideToggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Leranjun/js/HideToggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Leranjun/js/HideToggle.js&action=raw&ctype=text/javascript');

// RedirectContribsToggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Leranjun/js/RedirectContribsToggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Leranjun/js/RedirectContribsToggle.js&action=raw&ctype=text/javascript');

// RefToggle
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:Leranjun/js/RefToggle.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Leranjun/js/RefToggle.js&action=raw&ctype=text/javascript');

// AccesskeyVec
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/AccesskeyVec.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/AccesskeyVec.js&action=raw&ctype=text/javascript');

// ExtBoardInPortal
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/index.php?title=User:GuoPC/js/ExtBoardInPortal.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:GuoPC/js/ExtBoardInPortal.js&action=raw&ctype=text/javascript');

0 comments on commit b8a1558

Please sign in to comment.