Go Back   English Forum Switzerland > Support > Support > Forum support  
Thread Tools Display Modes
Old 25.08.2020, 12:09
hairybadger's Avatar
Forum Veteran
Join Date: Dec 2013
Location: Geneva area
Posts: 544
Groaned at 2 Times in 2 Posts
Thanked 751 Times in 302 Posts
hairybadger has a reputation beyond reputehairybadger has a reputation beyond reputehairybadger has a reputation beyond reputehairybadger has a reputation beyond repute
FF: greasemonkey script to set max img width

Firefox only:

Something that has been bugging me forever is the width of images in englishforum: if a wide image is posted, I have to sideways-scroll to read the text in all the messages. Example:


Yes, Firefox is always up-to-date. I've cobbled together an ugly-as-F greasemonkey script.

// ==UserScript==
// @name englishforum set max img width
// @version 1
// @grant none
// @namespace my.englishforum
// @include https://www.englishforum.ch/*html
// ==/UserScript==
var imgs = document.getElementsByTagName("img");

var length = imgs.length;

for(ii=0;ii< length;ii++){

function setImgWidth(img ) {
img.style.maxWidth = "900px";

Obviously there are other ways of doing it; this works for me.
La madre degli idioti sempre incinta
Reply With Quote
The following 4 users would like to thank hairybadger for this useful post:

firefox, greasemonkey

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
standard length and width of a parking place Guest Transportation/driving 6 20.05.2017 22:08
What a life script rainer_d Daily life 9 11.10.2014 14:58
question about snowboard width and foot size gongyj Sports / Fitness / Beauty / Wellness 6 11.01.2011 13:20

All times are GMT +2. The time now is 17:39.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0