Skip to content

Instantly share code, notes, and snippets.

@SyntaxBlitz
Last active April 13, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SyntaxBlitz/d57e89d4dbae9bfff4195613d3fcead0 to your computer and use it in GitHub Desktop.
Save SyntaxBlitz/d57e89d4dbae9bfff4195613d3fcead0 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mozillathimblelivepreview.net/bramble/production/dist/index.html?locale=en-US
// @grant none
// ==/UserScript==
(function() {
'use strict';
// window.addEventListener('load', function () {
// mjk's idea
let sp = null;
const intv = window.setInterval(function () {
[ sp ] = document.getElementsByTagName('iframe');
if (sp !== undefined) {
window.clearInterval(intv);
sp.onload = function () {
sp.src = sp.contentWindow.document.body.innerHTML;
};
}
}, 500);
// });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment