Skip to content

Instantly share code, notes, and snippets.

Last active November 11, 2018 14:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
const timer = setInterval(timer_tick, 500);
var prevId;
var div = document.createElement("div");
var body = document.getElementsByTagName("body")[0];
function timer_tick() {
var result = document.documentElement.innerHTML.match(/assetstore_package_(\d+)/);
if (!result) return;
var id = result[1];
if (prevId === id) return;
div.innerHTML = '<iframe src="' + id + '/widget-wide-light?aid=1011l478Q" style="width:600px; height:130px; border:0px;"></iframe>';
prevId = id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment