Skip to content

Instantly share code, notes, and snippets.

@mir4a
Last active August 29, 2015 14:27
Show Gist options
  • Save mir4a/1c56f93f08cb137d41c6 to your computer and use it in GitHub Desktop.
Save mir4a/1c56f93f08cb137d41c6 to your computer and use it in GitHub Desktop.
Skip annoying ads on fs.to
javascript:
(function (){
var iframe_wrap = document.getElementsByClassName('b-iframe-aplayer')[0],
_i = iframe_wrap.getElementsByTagName('iframe')[0],
player = _i.contentDocument.getElementById('player'),
teasers = _i.contentDocument.getElementsByClassName('b-aplayer-teasers')[0],
duration = player.duration;
teasers.style.visibility = 'hidden';
player.currentTime = duration;
var body = document.getElementsByTagName('body')[0],
branding = document.getElementsByClassName('l-body-branding')[0],
shittyAds = document.getElementById('adsProxy-zone-video'),
content = document.getElementsByClassName('l-content')[0];
body.style.background = '#000';
content.style.background = '#000';
branding.style.visibility = 'hidden';
shittyAds.style.visibility = 'hidden';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment