「利用者:Atmark-chan/common.js」の版間の差分

削除された内容 追加された内容
コメント追加ほか
User talk タブの文字列変更テスト
10行目: 10行目:
if (wgPageName=='Wikipedia:LiveRC') {
if (wgPageName=='Wikipedia:LiveRC') {
importScript('User:Was_a_bee/LiveRC.js');
importScript('User:Was_a_bee/LiveRC.js');
}

// User talk のタブの文字列を変更
if (mw.config.get("wgNamespaceNumber") == 2 || mw.config.get("wgNamespaceNumber") == 3) {
// 要素取得
var userTalkTab = document.getElementById('ca-talk').children[0];
// 文字列を変更
userTalkTab.textContent = '会話';
}
}

2020年5月6日 (水) 07:52時点における版

importScript('User:Atmark-chan/common.js/p-personal.js');
importScript('User:Atmark-chan/common.js/utcClock.js');
//importScript('User:Atmark-chan/common.js/memobox.js');

//User:Atmark-chan/BotTotalTimeCalc 使用のため
if (wgPageName=='User:Atmark-chan/BotTotalTimeCalc') {
	importScript('User:Atmark-chan/BotTotalTimeCalc.js');
}
//Wikipedia:LiveRC 使用のため
if (wgPageName=='Wikipedia:LiveRC') {
	importScript('User:Was_a_bee/LiveRC.js');
}

// User talk のタブの文字列を変更
if (mw.config.get("wgNamespaceNumber") == 2 || mw.config.get("wgNamespaceNumber") == 3) {
	// 要素取得
	var userTalkTab = document.getElementById('ca-talk').children[0];
	// 文字列を変更
	userTalkTab.textContent = '会話';
}