MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第7行: | 第7行: | ||
str=str.replace("番外","<strong style=\"background-color:#92fda3;\">番外</strong>"); | str=str.replace("番外","<strong style=\"background-color:#92fda3;\">番外</strong>"); | ||
str=str.replace("长故事","<strong style=\"background-color:#ff8080;\">长故事</strong>"); | str=str.replace("长故事","<strong style=\"background-color:#ff8080;\">长故事</strong>"); | ||
str=str.replace("故事集","<strong style=\"background-color:#df6eef;\">故事集</strong>"); | |||
str=str.replace("故事","<strong style=\"background-color:#66b9f1;\">故事</strong>"); | str=str.replace("故事","<strong style=\"background-color:#66b9f1;\">故事</strong>"); | ||
str=str.replace("设定","<strong style=\"background-color:#ffff7b;\">设定</strong>"); | str=str.replace("设定","<strong style=\"background-color:#ffff7b;\">设定</strong>"); | ||
elist[i].innerHTML = str; | elist[i].innerHTML = str; | ||
} | } | ||
2018年4月7日 (六) 11:58的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
var elist=document.getElementsByClassName("page-tags");
for(var i = 0; i < elist.length; i++) {
var str = elist[i].innerHTML;
str=str.replace("番外","<strong style=\"background-color:#92fda3;\">番外</strong>");
str=str.replace("长故事","<strong style=\"background-color:#ff8080;\">长故事</strong>");
str=str.replace("故事集","<strong style=\"background-color:#df6eef;\">故事集</strong>");
str=str.replace("故事","<strong style=\"background-color:#66b9f1;\">故事</strong>");
str=str.replace("设定","<strong style=\"background-color:#ffff7b;\">设定</strong>");
elist[i].innerHTML = str;
}