Skip to content

Commit

Permalink
fixes #881 - or should. blanks out the iframe so that any ads or othe…
Browse files Browse the repository at this point in the history
…r junk loaded in the iframe are destroyed. was unable to get any imgur pages with audio ads, so couldn't 100% verify, but this should work!
  • Loading branch information
honestbleeps committed Apr 4, 2014
1 parent 204e78d commit 493e3f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/showImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ modules['showImages'] = {
this.imageTrackFrame = document.createElement('iframe');
this.imageTrackFrame.addEventListener('load', function() {
setTimeout(modules['showImages'].imageTrackShift, 300);
modules['showImages'].imageTrackFrame.contentWindow.location.replace('about:blank');
}, false);
this.imageTrackFrame.style.display = 'none';
this.imageTrackFrame.style.width = '0px';
Expand Down

0 comments on commit 493e3f2

Please sign in to comment.