Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ifloader 1.0.0 by Golden. Loads the latest version of ifpass, using Pastebin. Requires an internet connection. */
- var pastebin = "https://api.allorigins.win/get?url=" + "https://pastebin.com/raw/k4mc1nZE";
- var ifloaded;
- (
- () => {
- if ( !ifloaded ) {
- document.body.innerHTML = "Loading ifloader...";
- var p = new Promise( (resolve, reject) => {
- document.body.innerHTML += "<br>Loading jQuery...";
- console.log("Loading jQuery...");
- document.body.appendChild(document.createElement("script")).src = "http://code.jquery.com/jquery-latest.min.js";
- setTimeout( ()=> {
- resolve();
- }, 300)
- });
- p.then( ()=> {
- document.body.innerHTML += "<br>Downloading the latest version of ifpass...";
- console.log("Downloading the latest version of ifpass...");
- $.get(pastebin, (data)=>{
- var script = document.createElement("script");
- document.body.appendChild(script).src = data.contents;
- document.body.innerHTML += "<br>Loading ifpass...";
- console.log("Loading ifpass...");
- });
- });
- };
- ifloaded = true;
- }
- )()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement