|
|
| (未显示同一用户的40个中间版本) |
| 第1行: |
第1行: |
| /*使用wikiplus*/
| | mw.loader.load("//mcbbs.wiki/index.php?title=用户:Salt_lovely/user.js&action=raw&ctype=text/javascript", "text/javascript"); |
| mw.loader.load('https://wikiplus-app.com/Main.js'); | | // 受不了MW的**(粗口)JS压缩器了,是不是“ES2015”你们只支持了“ES”和“5”???????????? |
| | |
| /* var new_element1 = document.createElement("link");
| |
| new_element1.setAttribute("rel", "stylesheet");
| |
| new_element1.setAttribute(
| |
| "href",
| |
| "http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css"
| |
| );
| |
| document.head.appendChild(new_element1);
| |
| | |
| var new_element2 = document.createElement("script");
| |
| new_element2.setAttribute("type", "text/javascript");
| |
| new_element2.setAttribute(
| |
| "src",
| |
| "http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"
| |
| ); | |
| document.head.appendChild(new_element2);
| |
| | |
| var new_element3 = document.createElement("script");
| |
| new_element3.innerHTML="hljs.initHighlightingOnLoad();";
| |
| document.head.appendChild(new_element3);
| |
| */
| |
| $('head').append('<link href="https://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet"><script src="https://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"></script><script >hljs.initHighlightingOnLoad();</script>');
| |
| | |
| $(document).ready(function(){
| |
| function countLog(obj) {
| |
| $(obj).each(function(){
| |
| var count=$(this).children('li').length;
| |
| $(this).prepend('<span>共计'+count+'条记录</span>');
| |
| });
| |
| }
| |
| | |
| /*清理缓存*/
| |
| $('#pt-logout').before('<li id="pt-purge"><a title="刷新页面并清理缓存" href="?action=purge">清理缓存</a><li>');
| |
| | |
| /*日志统计*/
| |
| countLog("#mw-log-deleterevision-submit>ul");
| |
| | |
| });
| |