「利用者:霧木諒二/monobook.js」の版間の差分

削除された内容 追加された内容
m編集の要約なし
m はくしか
タグ: 白紙化
 
1行目:
// [[en:User:Lupin/popups.js]]
 
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&amp;action=raw&amp;ctype=text/javascript&amp;dontcountme=s"></script>');
popupAdminLinks=true;
popupDelay=0.3;
popupHideDelay=0.3;
 
importScript("User:Tietew/submitblock.js");
importScript("User:Tietew/log.js");
importScript("User:Cpro/vfd.js");
importScript("User:Suisui/sysoptools.js");
 
//サイドバーを固定表示する - Firefoxのみ確認
function fixSideBar() {
var fixedBox = document.createElement('div');
fixedBox.style.position = 'fixed';
fixedBox.style.top = '0';
fixedBox.style.left = '0';
fixedBox.style.zIndex = '255';
document.getElementById('column-one').appendChild(fixedBox);
moveNodeTo(fixedBox, 'p-logo');
document.getElementById('p-logo').style.position = 'relative';
moveNodeTo(fixedBox, 'p-navigation');
moveNodeTo(fixedBox, 'p-help');
moveNodeTo(fixedBox, 'p-search');
moveNodeTo(fixedBox, 'p-tb');
moveNodeTo(fixedBox, 'p-lang');
function moveNodeTo(node, id) {
var movedNode = document.getElementById(id);
if(!movedNode) return;
node.appendChild(movedNode.parentNode.removeChild(movedNode));
}
}
//表示中のページ名で始まる記事の一覧を表示
function addPrefixindexTool() {
var refTool = document.getElementById('t-whatlinkshere'); //whatlinkshereのリンクを流用
if(!refTool) return;
var newTool = document.createElement('li');
newTool.id = 't-prefixindex';
var newUri = refTool.childNodes[0].href.replace('WhatLinksHere', 'PrefixIndex');
newUri = newUri.replace(encodeURIComponent('リンク元'), encodeURIComponent('始点指定ページ一覧'));
newTool.appendChild(createLink(newUri, 'PrefixIndex'));
refTool.parentNode.insertBefore(newTool, refTool.nextSibling);
}