Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- if(dimage) {
- var img = document.createElement('img');
- img.src = dimage.src;
- img.style.position = 'absolute'; // edit: changed 'fixed' to 'absolute' so that you can scroll around the image.
- img.style.left = '0px';
- img.style.top = '0px';
- img.style.zIndex = '10000'; // this is to push it above everything else, so the NG navbar doesn't float over it.
- document.body.appendChild(img);
- } else {
- console.log("Something went wrong. Are you on an NG dump item, specifically an image?");
- }
- })();
Add Comment
Please, Sign In to add comment