User:机智的小鱼君/common.js
来自小鱼君和他的朋友们
注意:在保存以后,您必须绕过浏览器缓存才能看到所作出的改变。
- 谷歌浏览器(Google Chrome)- Windows:按下“Ctrl”键然后按 F5。OS X系统:同时按⌘ Cmd和⇧ Shift键之后按R键。
- Safari - 按住⇧ Shift键然后点击工具栏中重新载入键。
- 火狐(Firefox)- Windows:按住Ctrl键然后按F5。OS X系统:同时按⌘ Cmd和⇧ Shift键之后按R键。
- Internet Explorer:按住Ctrl键然后按F5(或者点击“刷新”按钮)。
$('.wds-community-header__wiki-buttons .wds-dropdown__content .wds-list').append('<li><a href="https://wjghj.cn/wiki/'+ wgPageName +' ">在<b>WjghjProject</b>上查看</a></li>'); $('#test1').click(function(){PopupWindow()}); $('#test2').click(function(){PopupWindow('content')}); $('#test3').click(function(){PopupWindow('content','title')}); ////////////////////////////// //<source lang="javascript">// ////////////////////////////// /*========== 自定义工具列 ==========*/ //用于subst到各个社区的common.js,{{subst::w:user:机智的小鱼君/edittools}} if (mwCustomEditButtons.length) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "重定向", "tagOpen": "#REDIRECT [" + "[", "tagClose": "]]", "sampleText": "重定向到" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "删除线", "tagOpen": "<s>", "tagClose": "</s>", "sampleText": "删除线" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//vignette.wikia.nocookie.net/central/images/f/fd/Button_underline.png", "speedTip": "下划线", "tagOpen": "<u>", "tagClose": "</u>", "sampleText": "下划线" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "换行符号", "tagOpen": "<br />", "tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "写入一段不被读取的提示", "tagOpen": "<!-- ", "tagClose": " -->", "sampleText": "独立行" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//vignette.wikia.nocookie.net/central/images/1/12/Button_gallery.png", "speedTip": "添加一个图相册", "tagOpen": "<gallery>\n", "tagClose": "\n</gallery>", "sampleText": "\<\!\-\- 请输入媒体文件名称,一行一个文件 \-\-\>" }; } ////////////////////////////// //</source>/////////////////// //////////////////////////////