Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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. */
- var home = "https://web.archive.org";
- var version = "ifpass 1.06.2 by Golden";
- 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.";
- var todo = "TODO:\n - A way to submit URLs by pressing Enter on the URL bar.\n - A way to save the home URL.";
- var help = ()=> {
- alert(version + "\n" + features + "\n" + todo);
- };
- document.body.innerHTML = '' +
- '<style>\
- body {\
- border:0;\
- margin:0\
- }\
- </style>\
- <script>\
- var s = "' + home + '";\
- var h = "' + version + "\n" + features + "\n" + todo + '";\
- var setHomepage = ()=> {\
- s = prompt("Homepage?\n(Cancel to reset to default.)",s);\
- if (s==null) {\
- s="' + home +'";\
- }\
- };\
- var help = ()=> {\
- alert(h);\
- };\
- </script>\
- <div align="center">\
- <button onclick="javascript:help();">?</button> | \
- <a href="javascript:setHomepage()">Change</a> \
- <button onclick="document.getElementById(\'loadedPage\').src = s">⌂</button> | \
- <input type="text" id="textBox" style="width: 40%" value="' + home + '"></input>\
- <button onclick="document.getElementById(\'loadedPage\').src = document.getElementById(\'textBox\').value">Go!</button> | \
- <button onclick="document.getElementById(\'loadedPage\').src += \'\'">↻</button>\ </div>\
- <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