User:ExtorcDev/rmMaster.js: Difference between revisions

Content deleted Content added
ExtorcDev (talk | contribs)
No edit summary
ExtorcDev (talk | contribs)
No edit summary
Line 96:
for (page2 in data.query.pages){
result2 = data.query.pages[page2].revisions[0]['*'];
var matchnewMatch = result2.match(/<!--.*/gm).toString() + '\n' + techReq;
result2 = result2.replace(match/<!--.*/gm, newMatch);
var newMatch = match + '\n' + techReq;
result2 = result2.replace(match, newMatch);
console.log(result2);
}