Site Notice
hello, world
MediaWiki:Js-url-part.js
From Project-EPB Commons
Revision as of 23:56, 12 September 2019 by 机智的小鱼君 (talk | contribs) (Created page with "→* *『Wjghj Project Static』 * This _JavaScript_ code is from https://common.wjghj.cn * CC BY-NC-SA *: var urlpart = location.href.split('/').slice(3).join('/'), u...")
Invoke this: https://common.wjghj.cn/js/{{#replace:{{#replace:Js-url-part.js|Js-|}}|.js|}}
Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/**
*『Wjghj Project Static』
* This _JavaScript_ code is from https://common.wjghj.cn
* CC BY-NC-SA
**/
var urlpart = location.href.split('/').slice(3).join('/'),
urlpart = urlpart.split('/');
console.info(urlpart[0]);