Last active
April 13, 2019 19:11
-
-
Save SyntaxBlitz/d57e89d4dbae9bfff4195613d3fcead0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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