MediaWiki:Common.js

From 52Pi Wiki
Revision as of 21:04, 22 November 2019 by TaterLi (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*
所有用戶在加載任何頁面時,這裡的JavaScript都會加載
*/
mw.loader.load( 'https://cdn.weglot.com/weglot.min.js' );

<script>
    Weglot.initialize({
        api_key: 'wg_ee4169a53542806bd05dc5e85887b0399'
    });
</script>