LLWiki正在建设中,欢迎加入我们!
MediaWiki:Mobile.js
Bhsd(讨论 | 贡献)2020年8月6日 (四) 00:14的版本 (创建页面,内容为“→这里的任何JavaScript将为使用移动版网站的用户加载: /* Add to MediaWiki:Mobile.js for custom Mobile Menu links for MW-1.34.2 with MobileFront…”)
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */ /* Add to MediaWiki:Mobile.js for custom Mobile Menu links for MW-1.34.2 with MobileFrontend and MinervaNeue Just replace span text and href to add links */ var timer = setInterval(function() { if ($('.menu ul:first').length) { console.log("mobile menu exists"); clearInterval(timer); $('.menu ul:first').append('<li><a href="/zh/special:recentchanges" class="mw-ui-icon"><span>最近更改</span></a></li>'); } }, 100); // check every 100ms