Code.zip (with bookmarklets)
Code.zip (without bookmarklets)
This is the first revision of the code.
Mirror - All bookmarklets, All items
Bookmarklets for those who cannot access the files -
Page Embedder:
javascript:var url = prompt("What website do you want to embed?");if(url != null){var iframe = document.createElement("iframe");iframe.src = "https://" + url.replaceAll("https://", "");iframe.title = url;iframe.frameBorder = 0;iframe.scrolling = "yes";iframe.style = "position: absolute; overflow: hidden; width: 100%; height: 100%; left: 0; right: 0; top: 0; bottom: 0;";iframe.width = "100%";iframe.height = "100%";document.body = document.createElement("body");document.body.appendChild(iframe);}
Google (don't retain original content):
javascript:var GoogleEmbedScript = document.createElement("script");var GoogleEmbedDiv = document.createElement("div");GoogleEmbedScript.src = "https://cse.google.com/cse.js?cx=7553909a4c94c4d2d";GoogleEmbedDiv.className = "gcse-search";document.body = document.createElement("body");document.body.appendChild(GoogleEmbedScript);document.body.appendChild(GoogleEmbedDiv);
Google (retain original content):
javascript:var GoogleEmbedScript = document.createElement("script");var GoogleEmbedDiv = document.createElement("div");GoogleEmbedScript.src = "https://cse.google.com/cse.js?cx=7553909a4c94c4d2d";GoogleEmbedDiv.className = "gcse-search";document.body.appendChild(GoogleEmbedScript);document.body.appendChild(GoogleEmbedDiv);
Remove Google Embed:
javascript:document.body.removeChild(document.querySelector("#___gcse_0"));
Save current body:
javascript:var storedBody = document.body;
Load saved body:
javascript:document.body = storedBody;
Page blanker:
javascript:document.body = document.createElement("body");