Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Roumenuv Rouming Fit Pictures
- // @namespace Violentmonkey Scripts
- // @match https://www.rouming.cz/roumingShow.php?file=*
- // @grant none
- // @version 1.0
- // @description Resizes pictures that are too wide to fit the screen.
- // ==/UserScript==
- function setMaxWidth() {
- document.getElementsByTagName("img")[0].style.maxWidth = document.documentElement.clientWidth + "px";
- }
- setMaxWidth();
- window.addEventListener("resize", setMaxWidth);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement