MediaWiki:Common.js
From TerGoPedia
Revision as of 16:48, 5 July 2022 by A4m74n (talk | contribs) (Created page with "→Any JavaScript here will be loaded for all users on every page load.: let templateLiteral = [` <link rel="apple-touch-icon" sizes="180x180" href="tergopedia/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="tergopedia/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="tergopedia/favicon-16x16.png"> <link rel="manifest" href="tergopedia/site.webmanifest"> <link rel="mask-icon" href="tergopedia/safari-pinned-tab.sv...")
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.
/* Any JavaScript here will be loaded for all users on every page load. */ let templateLiteral = [` <link rel="apple-touch-icon" sizes="180x180" href="tergopedia/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="tergopedia/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="tergopedia/favicon-16x16.png"> <link rel="manifest" href="tergopedia/site.webmanifest"> <link rel="mask-icon" href="tergopedia/safari-pinned-tab.svg" color="#5bbad5"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="theme-color" content="#ffffff"> `] let head = document.querySelector("head"); head.innerHTML = templateLiteral;