您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
make the submission image fit the height of the screen
当前为
- // ==UserScript==
- // @name image view fit-height furaffinity.net
- // @namespace Violentmonkey Scripts
- // @match https://www.furaffinity.net/view*
- // @grant none
- // @version 1.1.1
- // @author justrunmyscripts
- // @license MIT
- // @description make the submission image fit the height of the screen
- // ==/UserScript==
- const element = document.querySelector('#submissionImg');
- element.setAttribute('style', `
- max-height: calc(100vh - 110px);
- `);
- // NOTE: while this _does_ technically remove an ad
- // which shouldn't be the responsibility of this script
- // (get an ad blocker instead)
- // this ad seems to not be used most of the time
- // and in its unused state it still takes up vertial
- // viewport space, pushing the main submission down...
- const ad_el = document.querySelector('.leaderboardAd');
- ad_el.remove();