Advertisement
Golden-ifpass

ifpass-1.06.2

May 31st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* ifpass 1.06.2 by Golden. Paste into a bookmark to use. Have fun! I am not liable for any consequences of you misusing this code. You are allowed to modify this code as long as I am credited as the original creator. */
  2. var home = "https://web.archive.org";
  3. var version = "ifpass 1.06.2 by Golden";
  4. var features = "Features:\n - Doesn't save to search history.\n - Works in Firefox and Chrome.\n - Includes fully functional home button.\n - Reload to reset page.";
  5. var todo = "TODO:\n - A way to submit URLs by pressing Enter on the URL bar.\n - A way to save the home URL.";
  6. var help = ()=> {
  7.     alert(version + "\n" + features + "\n" + todo);
  8. };
  9. document.body.innerHTML = '' +
  10. '<style>\
  11.     body {\
  12.         border:0;\
  13.         margin:0\
  14.     }\
  15. </style>\
  16. <script>\
  17.     var s = "' + home + '";\
  18.     var h = "' + version + "\n" + features + "\n" + todo + '";\
  19.     var setHomepage = ()=> {\
  20.         s = prompt("Homepage?\n(Cancel to reset to default.)",s);\
  21.         if (s==null) {\
  22.             s="' + home +'";\
  23.         }\
  24.     };\
  25.     var help = ()=> {\
  26.         alert(h);\
  27.     };\
  28. </script>\
  29. <div align="center">\
  30. <button onclick="javascript:help();">?</button> | \
  31. <a href="javascript:setHomepage()">Change</a> \
  32. <button onclick="document.getElementById(\'loadedPage\').src = s">⌂</button> | \
  33. <input type="text" id="textBox" style="width: 40%" value="' + home + '"></input>\
  34. <button onclick="document.getElementById(\'loadedPage\').src = document.getElementById(\'textBox\').value">Go!</button> | \
  35. <button onclick="document.getElementById(\'loadedPage\').src += \'\'">↻</button>\ </div>\
  36. <iframe id="loadedPage" onload="document.getElementById(\'textBox\').value = document.getElementById(\'loadedPage\').src" frameBorder="0" sandbox="allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-presentation allow-same-origin allow-scripts" src="' + home + '" width=100% height=96.5%></iframe>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement