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");
let ip = [this.content.indexOf("<!--Hooks-->")+2,this.content.indexOf("<!--HooksEnd-->"),this.content.indexOf("-->")+
hooktext = this.content.slice(ip[0],ip[1]);
let creditstext = this.content.slice(ip[2],ip[3]);
|