Block Most Of The Ads In Pages. This Script Can Only Block Ads Which Are In "Iframe" Tags.
目前為
// ==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);
})();