Greasy Fork

移除所有页面框架 Remove iframe

Block Most Of The Ads In Pages. This Script Can Only Block Ads Which Are In "Iframe" Tags.

目前为 2022-06-22 提交的版本。查看 最新版本

// ==UserScript==
// @name             移除所有页面框架 Remove iframe
// @namespace        https://ez118.github.io/
// @version          1.2
// @icon             https://adblockplus.org/favicon.ico
// @description      Block Most Of The Ads In Pages. This Script Can Only Block Ads Which Are In "Iframe" Tags.
// @author           ZZY_WISU
// @match            *://*/*
// @license          GNU GPLv3
// ==/UserScript==


(function() {
    'use strict';

    setTimeout(function() {
        Array.prototype.forEach.call(document.querySelectorAll('iframe'), function(iframe) {
            iframe.parentElement.removeChild(iframe);
        });
    }, 1000);
})();