Advertisement
Golden-ifpass

ifloader 1.0.0

Jun 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* ifloader 1.0.0 by Golden. Loads the latest version of ifpass, using Pastebin. Requires an internet connection. */
  2. var pastebin = "https://api.allorigins.win/get?url=" + "https://pastebin.com/raw/k4mc1nZE";
  3. var ifloaded;
  4. (
  5.     () => {
  6.         if ( !ifloaded ) {
  7.             document.body.innerHTML = "Loading ifloader...";
  8.             var p = new Promise( (resolve, reject) => {
  9.                 document.body.innerHTML += "<br>Loading jQuery...";
  10.                 console.log("Loading jQuery...");
  11.                 document.body.appendChild(document.createElement("script")).src = "http://code.jquery.com/jquery-latest.min.js";
  12.                 setTimeout( ()=> {
  13.                     resolve();
  14.                 }, 300)
  15.             });
  16.             p.then( ()=> {
  17.                 document.body.innerHTML += "<br>Downloading the latest version of ifpass...";
  18.                 console.log("Downloading the latest version of ifpass...");
  19.                 $.get(pastebin, (data)=>{
  20.                     var script = document.createElement("script");
  21.                     document.body.appendChild(script).src = data.contents;
  22.                     document.body.innerHTML += "<br>Loading ifpass...";
  23.                     console.log("Loading ifpass...");
  24.                 });
  25.             });
  26.         };
  27.         ifloaded = true;
  28.     }
  29. )()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement