rodr
Well-known member
This works with Firefox or Google Chrome. It fixes the problem of posted images that are too wide to fit your browser window. It also limits image height to 800 pixels (you might adjust that to your taste).
Instructions below are for Firefox. For Chrome see post #4.
First you have to install GreaseMonkey:
1. Go to Tools -> Add-ons -> Get Addons.
2. Search for GreaseMonkey.
3. Install, then Restart Now.
To install the magic BARF script:
1. Highlight the script code below and copy it into your clipboard with Ctrl-C or Edit -> Copy.
2. Click the dropdown arrow next to the monkey icon near the top right of your screen.
3. Select New User Script.
4. Click "Use Script from Clipboard".
5. Click Save.
6. Close the script window.
7. Go BARFing!
Instructions below are for Firefox. For Chrome see post #4.
First you have to install GreaseMonkey:
1. Go to Tools -> Add-ons -> Get Addons.
2. Search for GreaseMonkey.
3. Install, then Restart Now.
To install the magic BARF script:
1. Highlight the script code below and copy it into your clipboard with Ctrl-C or Edit -> Copy.
2. Click the dropdown arrow next to the monkey icon near the top right of your screen.
3. Select New User Script.
4. Click "Use Script from Clipboard".
5. Click Save.
6. Close the script window.
7. Go BARFing!
Code:
// ==UserScript==
// @name resizeBARF
// @namespace rodr
// @description Limit images in vBulletin 3 posts to available width.
// @include http://bayarearidersforum.com/*
// @include http://www.bayarearidersforum.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version 1
// @grant none
// ==/UserScript==
$(document).ready(function() {
$('[id^="post_message_"] img').css("maxWidth", "100%");
$('[id^="post_message_"] img').css("maxHeight", "800px");
});
Last edited: