Greasy Fork is available in English.

Frambreaker Prevention

adds all sandbox restrictions to iframes except allow-same-origin

  1. // ==UserScript==
  2. // @name Frambreaker Prevention
  3. // @namespace pendevin
  4. // @description adds all sandbox restrictions to iframes except allow-same-origin
  5. // @include *
  6. // @version 1
  7. // @grant none
  8. // @require http://code.jquery.com/jquery-2.1.3.min.js
  9. // ==/UserScript==
  10.  
  11. //ll breaks without noconflict jquery
  12. this.$ = this.jQuery = jQuery.noConflict(true);
  13.  
  14. $('iframe').attr('sandbox','allow-same-origin');