Skip to content

Commit

Permalink
feat: add hide-img script
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinpan committed Sep 28, 2023
1 parent 09d15eb commit 6f41609
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,8 @@

## 黑白

黑白化网站。
黑白化网站。

## 隐藏图片

隐藏所有的图片。
16 changes: 16 additions & 0 deletions scripts/hide-img.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ==UserScript==
// @name Hide Image 隐藏图片
// @namespace https://github.com/yujinpan/tampermonkey-extension
// @version 1.0
// @license MIT
// @description Hide all image in website。
// @author yujinpan
// @include http*://**
// @run-at document-start
// ==/UserScript==

(function () {
const style = document.createElement('style');
style.innerHTML = 'img{display:none!important;}*{background-image:none!important;}';
document.head.append(style);
})();

0 comments on commit 6f41609

Please sign in to comment.