User:Theleekycauldron/Scripts/PSHAW/dependencies/Prep.js: Difference between revisions

Content deleted Content added
eeeeee
yay
Line 27:
this.page = res
this.content = this.page[0].revisions[0].slots.main.content;
console.log(this.content)
this.loadHooks();
this.loadFiles();
Line 36 ⟶ 35:
loadHooks(){
let hooktext = this.content.split("\n");
console.log(this.contentip)
let ip = [this.content.indexOf("<!--Hooks-->")+2,this.content.indexOf("<!--HooksEnd-->"),this.content.indexOf("-->")+21,this.content.indexOf("</div>")]; //important split points
hooktext = this.content.slice(ip[0],ip[1]);
let creditstext = this.content.slice(ip[2],ip[3]);