Site Notice
hello, world
Difference between revisions of "MediaWiki:Js-InPageEdit-v2.js/uninstall.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要 //使用ipe进行的快速编辑) |
([InPageEdit] 没有编辑摘要 //使用ipe进行的快速编辑) |
||
Line 6: | Line 6: | ||
var wikitext = data.parse.wikitext['*']; | var wikitext = data.parse.wikitext['*']; | ||
console.info(wikitext); | console.info(wikitext); | ||
− | console.info(wikitext.replace( /mw\.loader\.load\((.)*(\'|\")https:\/\/common\.wjghj\.cn\/js\/InPageEdit-v2(\'|\")(.)*\)\;/ig , '')); | + | console.info(wikitext.replace( /mw\.loader\.load\((.)*(\'|\")https:\/\/common\.wjghj\.cn\/js\/InPageEdit-v2(\'|\")(.)*\)(\;)?/ig , '')); |
}); | }); |
Revision as of 01:03, 4 November 2019
new mw.Api().get({
action: 'parse',
prop: 'wikitext',
page: 'User:' + mw.config.get('wgUserName') + '/common.js'
}).done(function(data){
var wikitext = data.parse.wikitext['*'];
console.info(wikitext);
console.info(wikitext.replace( /mw\.loader\.load\((.)*(\'|\")https:\/\/common\.wjghj\.cn\/js\/InPageEdit-v2(\'|\")(.)*\)(\;)?/ig , ''));
});