User:ExtorcDev/rmMaster.js: Difference between revisions

Content deleted Content added
ExtorcDev (talk | contribs)
No edit summary
ExtorcDev (talk | contribs)
fix depreciated RMT regex
 
(4 intermediate revisions by the same user not shown)
Line 1:
//<nowiki>
$('<br><button class="closeButton">Close</button><button class="relistButton">Relist</button>').insertBefore('.tmbox-move');
$('<button class="rmTechButton">Raise Technical Move request</button>').insertBefore('.tmboxmw-movearchivedtalk');
 
var url = window.___location.href.match(/Talk.*$/gm).toString().replace(/_/g, ' ');
Line 74 ⟶ 75:
for (page2 in data.query.pages){
result2 = data.query.pages[page2].revisions[0]['*'];
var newMatch = result2.match(/Uncontro=.* U.*====\n.*>\n<!--.*\n.*\n.*/gm).toString() + '\n' + techReq;
console.log(newMatch);
result2 = result2.replace(/Uncontro=.* U.*====\n.*>\n<!--.*\n.*\n.*/gm, newMatch);
console.log(result2);
editPage('Wikipedia:Requested moves/Technical requests', result2, 'Raised Technical Request');