adfreetv.ch uncloak

Breaks iframes from adfreetv.ch links and directly loads the host site avoiding anti-abuse scripts.

  1. // ==UserScript==
  2. // @name adfreetv.ch uncloak
  3. // @namespace https://greasyfork.org/en/users/10118-drhouse
  4. // @version 1.0
  5. // @description Breaks iframes from adfreetv.ch links and directly loads the host site avoiding anti-abuse scripts.
  6. // @run-at document-start
  7. // @include https://adfreetv.ch/watch*
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  9. // @author drhouse
  10. // @icon https://adfreetv.ch/images/favicon-32.png
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function () {
  14.  
  15. var url = window.location.search;
  16. location.replace('https://adfreetv.ch/watch2.php' + url);
  17.  
  18. if(window.location.href.indexOf("watch2") > -1 ) {
  19. var real = $('body > a').attr('href');
  20. location.replace(real);
  21. }
  22.  
  23. });