MediaWiki:Gadget-inline-diff.js:修订间差异
创建页面,内容为“var url=new mw.Uri(location.href); if (url.query['diff-type']===undefined && url.query['diff']!==undefined) { var jumpurl=url.extend({'diff-type':'inline'}).toString(); var $link=$('<a>').text('内联显示更改').attr('href',jumpurl); $('#mw-content-text').prepend($link) }” |
// Edit via Wikiplus |
||
第1行: | 第1行: | ||
var url=new mw.Uri(location.href); | $(function (){var url=new mw.Uri(location.href); | ||
if (url.query['diff-type']===undefined && url.query['diff']!==undefined) { | if (url.query['diff-type']===undefined && url.query['diff']!==undefined) { | ||
var jumpurl=url.extend({'diff-type':'inline'}).toString(); | var jumpurl=url.extend({'diff-type':'inline'}).toString(); | ||
var $link=$('<a>').text('内联显示更改').attr('href',jumpurl); | var $link=$('<a>').text('内联显示更改').attr('href',jumpurl); | ||
$('#mw-content-text').prepend($link) | $('#mw-content-text').prepend($link); | ||
} | }}); |