您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Resize images over 600px to 600px
当前为
// ==UserScript== // @name Resize images over 600px // @namespace http://tampermonkey.net/ // @version 0.1 // @description Resize images over 600px to 600px // @author udontkn0wme // @match *://*/* // @icon https://opu.peklo.biz/p/23/07/05/1688548365-c5a3a.jpg // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; const images = document.getElementsByTagName('img'); for (let i = 0; i < images.length; i++) { const img = images[i]; if (img.height > 600) { img.style.height = '600px'; img.style.width = 'auto'; } } })();