MediaWiki:Gadget-dark-mode-toggle.js:修订间差异
创建页面,内容为“→* * Enables or disables the dark-mode gadget. * * Authors: [[User:SD0001]], [[User:Nardog]]: // 'Dark mode' and 'Light mode' messages must match the ::before content in // MediaWiki:Gadget-dark-mode-toggle-pagestyles.css and MediaWiki:Gadget-dark-mode.css, respectively. // Don't overwrite existing messages, if already set on a foreign wiki prior to loading this file if (!mw.messages.get('darkmode-turn-on-label')) { mw.messages.set({ 'darkmod…” |
小无编辑摘要 标签:已被回退 |
||
第15行: | 第15行: | ||
'darkmode-turn-off-tooltip': 'Turn dark mode off', | 'darkmode-turn-off-tooltip': 'Turn dark mode off', | ||
}); | }); | ||
mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.dark-mode-toggle&only=scripts' ); | |||
} | } | ||