🌟 | 現在、 鉄壁ヘッドショットには対応済みです。 鉄壁HSは通常HSと同じダメージになります。LMG及びDMR、チャージライフル、ハンマーポイント弾を除き、すべてのダメージ値が一致していることを確認しています。 |
「MediaWiki:Gadget-NewPP-report.js」の版間の差分
ナビゲーションに移動
検索に移動
(ページの作成:「→* * @description: * This script makes the [[mw:NewPP parser report]] visible on every content page at the bottom. * @required modules: 'mediawiki.util': $(functio…」) |
(名前空間がMediaWikiのとき実行しないように変更) |
||
6行目: | 6行目: | ||
$(function () { | $(function () { | ||
'use strict'; | 'use strict'; | ||
$(mw.util.addPortletLink('p-cactions', '#', 'NewPP report')).on('click', function (e) { | var ns = mw.config.get('wgNamespaceNumber'); | ||
if (ns !== 8 /* MediaWiki */) { | |||
$(mw.util.addPortletLink('p-cactions', '#', 'NewPP report')).on('click', function (e) { | |||
e.preventDefault(); | |||
$(this).remove(); | |||
e = null; | |||
$('.mw-parser-output').contents().filter(function () { | |||
return this.nodeType === 8 && /^\s*(NewPP|Transclusion|Saved) /.test(this.data); | |||
}).replaceWith(function () { | |||
var pre = $('<pre>', { dir: 'ltr' }).text($.trim(this.data)); | |||
if (!e) e = pre[0]; | |||
return pre; | |||
}); | |||
if (e) e.scrollIntoView(); | |||
}); | }); | ||
} | |||
} | |||
}); | }); |
2021年8月27日 (金) 10:11時点における版
/** * @description: * This script makes the [[mw:NewPP parser report]] visible on every content page at the bottom. * @required modules: 'mediawiki.util' */ $(function () { 'use strict'; var ns = mw.config.get('wgNamespaceNumber'); if (ns !== 8 /* MediaWiki */) { $(mw.util.addPortletLink('p-cactions', '#', 'NewPP report')).on('click', function (e) { e.preventDefault(); $(this).remove(); e = null; $('.mw-parser-output').contents().filter(function () { return this.nodeType === 8 && /^\s*(NewPP|Transclusion|Saved) /.test(this.data); }).replaceWith(function () { var pre = $('<pre>', { dir: 'ltr' }).text($.trim(this.data)); if (!e) e = pre[0]; return pre; }); if (e) e.scrollIntoView(); }); } });