“User:机智的小鱼君/common.js”的版本间的差异
来自小鱼君和他的朋友们
小 |
小 (导入1个版本) |
(没有差异)
|
2019年9月4日 (三) 23:45的版本
$('.wds-community-header__wiki-buttons .wds-dropdown__content .wds-list').append('<li><a href="https://wjghj.cn/wiki/'+ wgPageName +' ">在<b>WjghjProject</b>上查看</a></li>'); ////////////////////////////// //<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>/////////////////// //////////////////////////////