document.getElementById('channel_actions').innerHTML = document.getElementById('channel_actions').innerHTML + '<button id = "toggleButton" style = "position: absolute;height:32px;margin-left:0px" onclick = "toggleOverlay();">Start Overlay</button>';
How come when I do this in my chrome console it adds on to the page like expected but when I make it a bookmarklet this is the only thing it shows. It almost seems like the bookmarklet is calling document.write(My code) or something. Any help is appreciated.