您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically resizes imgur videos to fit the screen height
当前为
// ==UserScript== // @name Imgur auto resize // @namespace https://gf.qytechs.cn/en/scripts/434744-imgur-auto-resize // @version 1.2 // @description Automatically resizes imgur videos to fit the screen height // @icon https://imgur.com/favicon.ico // @author NotJ3st3r // @license MIT // @match https://i.imgur.com/* // @grant none // ==/UserScript== (function() { 'use strict'; addGlobalStyle('body { overflow: hidden !important; }'); try { var video = document.getElementsByTagName('video'); video[0].style.height = "100vh"; video[0].style.width = "auto"; video[0].setAttribute("controls", "controls"); } catch{} try { var image = document.getElementsByTagName("img"); image[0].style.height = "100vh"; image[0].style.width = "auto"; } catch{} })(); function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址