用户:自由李代数/common.js:修订间差异

无编辑摘要
(应该可以了)
标签移动版编辑 移动版网页编辑
无编辑摘要
标签移动版编辑 移动版网页编辑
第3行: 第3行:


/* preload-code */
/* preload-code */
function getTitle() {
function getTitle(doc) {
  var index1, index2, url;
  var index1, index2, url;
  url = document.URL;
  url = doc.URL;
  if (url.slice(21, 26) == '/wiki/'){
  if (url.slice(21, 26) == '/wiki/'){
   index1 = url.search(\/wiki/(.*?)(\?|$)\i);
   index1 = url.search(\/wiki/(.*?)(\?|$)\i);
第18行: 第18行:


var title, res1
var title, res1
title = '自由李代数'
title = getTitle(document)
res1 = "https://mcbbs-wiki.cn/wiki/Special:WhatLinksHere/" + title
res1 = "https://mcbbs-wiki.cn/wiki/Special:WhatLinksHere/" + title
/* 右上角添加 */
/* 右上角添加 */