您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide all image tags
当前为
- // ==UserScript==
- // @name hide all image tags on a page
- // @namespace https://github.com/4ndr3wN/BrowserJavascripts/tree/master/hide_all_images
- // @version 0.1
- // @description Hide all image tags
- // @author 4ndr3wN@github
- // @match *://*/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var images = document.getElementsByTagName('img');
- setImagesNone(images);
- function setImagesNone(images){
- for (var img_k in images) {
- if (!images.hasOwnProperty(img_k)) continue;// skip loop if the property is from prototype
- var image_v = images[img_k];
- image_v.style.display = "none";
- }
- }
- })();