I've found a fix for browser-wide-on images

Does exactly what it says on the tin. Some of the nonsense contained herein may be very loosely related to The Sisters of Mercy, but I wouldn't bet your PayPal account on it. In keeping with the internet's general theme nothing written here should be taken as Gospel: over three quarters of it is utter gibberish, and most of the forum's denizens haven't spoken to another human being face-to-face for decades. Don't worry your pretty little heads about it. Above all else, remember this: You don't have to stay forever. I will understand.
Post Reply
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

http://userscripts.org/scripts/show/7780

(greasemonkey script for firefox)
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
lazarus corporation
Lord Protector
Posts: 3426
Joined: 09 May 2004, 17:42
Location: out there on a darkened road
Contact:

Nice find!
User avatar
6FeetOver
Childlike Empress
Posts: 7683
Joined: 25 Jan 2002, 00:00
Location: way on down south, New London town...
Contact:

I found one a long time ago - it's called "Photoshop." :lol: :P
I left my heart in Ballycastle... :cry: :cry: :cry:
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

:P Bog off :lol:

This one works on any and all websites, including ones we don't have moderating privileges on...
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
Obviousman
Outside the Simian Flock
Posts: 7090
Joined: 22 Aug 2004, 12:14
Location: Soon over Babaluma
Contact:

Looks cool, so I just downloaded this, now how can I get it to work?
Styles are a lie.

My Facebook/My Flickr
User avatar
EvilBastard
Overbomber
Posts: 3907
Joined: 01 Feb 2006, 17:48
Location: Where the Ruined Tower shouts

markfiend wrote:This one works on any and all websites, including ones we don't have moderating privileges on...
:eek:

I've heard tell of such sites, but never believed that they existed.
"I won't go down in history, but I probably will go down on your sister."
Hank Moody
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Obviousman wrote:Looks cool, so I just downloaded this, now how can I get it to work?
Have you got the greasemonkey extension for firefox? It's a script for that.

It should just work.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
weebleswobble
Underneath the Rock
Posts: 5875
Joined: 09 Feb 2006, 06:57
Location: The Bat-Milk Cave
Contact:

I've got a greased monkey :innocent:
‎"We will wear some very loud shirts. We will wear some very wrong trousers."
User avatar
mh
Above the Chemist
Posts: 8066
Joined: 23 Jun 2003, 14:41
Location: A city built on rock 'n' roll

Nice one Mark. :notworthy:

A small suggested modification (to preserve the aspect ratio and reduce to 60%):

Code: Select all

// Written by Yan Huang

// ==UserScript==
// @name          Yan's Code...Pwnage!
// @description   Pwnage!
// @include       http://*
// ==/UserScript==

var z = document.getElementsByTagName ('img');

for &#40;i = 0; i < z.length; i++&#41;
&#123;
	if &#40;z&#91;i&#93;.width >= screen.width * 0.60&#41;
	&#123;
		var aspect = &#40;z&#91;i&#93;.width / z&#91;i&#93;.height&#41;;

		z&#91;i&#93;.width = screen.width * 0.60;
		z&#91;i&#93;.height = z&#91;i&#93;.width / aspect;
	&#125;
&#125;
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
User avatar
Obviousman
Outside the Simian Flock
Posts: 7090
Joined: 22 Aug 2004, 12:14
Location: Soon over Babaluma
Contact:

markfiend wrote:
Obviousman wrote:Looks cool, so I just downloaded this, now how can I get it to work?
Have you got the greasemonkey extension for firefox? It's a script for that.

It should just work.
Got it, should've installed that first. Doh...

I'll change it to mh's version, sounds better to me!
Styles are a lie.

My Facebook/My Flickr
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

No need, it preserves aspect ratio anyway.

Although funnily enough I changed 0.75 to 0.6 too.

Code: Select all

// Written by Yan Huang

// ==UserScript==
// @name          Yan's Code...Pwnage!
// @description   Pwnage!
// @include       http&#58;//*
// ==/UserScript==

var z = document.getElementsByTagName&#40;'img'&#41;;
for&#40;i=0;i<z.length;i++&#41; &#123;
if&#40;z&#91;i&#93;.width >= screen.width*0.6&#41; &#123;
	z&#91;i&#93;.width = screen.width*0.6;
	&#125;
&#125;
Edit to add: mh WTF have you done with the code format man? Opening braces on their own line? What's that all about? ???
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
mh
Above the Chemist
Posts: 8066
Joined: 23 Jun 2003, 14:41
Location: A city built on rock 'n' roll

markfiend wrote:Edit to add: mh WTF have you done with the code format man? Opening braces on their own line? What's that all about? ???
:twisted: :twisted: :twisted:
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

mh wrote:
markfiend wrote:Edit to add: mh WTF have you done with the code format man? Opening braces on their own line? What's that all about? ???
:twisted: :twisted: :twisted:
:lol: That's just evil though. I had it formatted by the one true code format :twisted:
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
mh
Above the Chemist
Posts: 8066
Joined: 23 Jun 2003, 14:41
Location: A city built on rock 'n' roll

markfiend wrote:
mh wrote:
markfiend wrote:Edit to add: mh WTF have you done with the code format man? Opening braces on their own line? What's that all about? ???
:twisted: :twisted: :twisted:
:lol: That's just evil though. I had it formatted by the one true code format :twisted:
Image
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Indeed ;D
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Code: Select all

// ==UserScript==
// @name           shrinkylinks
// @namespace      http&#58;//www.markfiend.com/scripts
// @description    For blogs and messageboards&#58; if the link text is the same as the link destination, changes the link text to 'Clicky'
// @include        *
// ==/UserScript==

var z = document.getElementsByTagName&#40;'a'&#41;;
for&#40;i=0;i<z.length;i++&#41; &#123;
	if&#40;z&#91;i&#93;.href == z&#91;i&#93;.innerHTML && z&#91;i&#93;.href != ''&#41; &#123;
		z&#91;i&#93;.innerHTML = 'Clicky';
	&#125;
&#125;
So (for example) ebay links that are 3miles long and (also) give your browser a widey, get changed to 'clicky'
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
emilystrange
Above the Chemist
Posts: 9021
Joined: 03 Nov 2003, 20:26
Location: Lady Strange's boudoir.

yes but what do i DO with it?
I just can't keep living on dreams no more
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

1: Install the greasemonkey addon for firefox -- https://addons.mozilla.org/en-US/firefox/addon/748

2: Tools -> Greasemonkey -> New User Script...

3: In the dialogue boxes, put 'shrinkylinks' under name, any URL in the namespace, then click OK

4: it'll open a text editor. Delete everything and paste in the code above.

5: Save.

Oh by the way I forgot to include this bit: (not needed for the code to run -- 'copyleft' attribution.)

Code: Select all

// This script is provided under the terms of the GNU General
// Public License, version 3, which can be found at
//   http&#58;//www.gnu.org/copyleft/gpl.html
// Specifically, note that this script comes with NO guarantees,
// not even the implied guarantee of merchantibility or fitness for a 
// specific purpose.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Scrap that.

1: Get greasemonkey as above
2: go to http://userscripts.org/scripts/show/32138 where I've uploaded the script and click 'Install this script'
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
emilystrange
Above the Chemist
Posts: 9021
Joined: 03 Nov 2003, 20:26
Location: Lady Strange's boudoir.

well that would have gone so much better if it had opened a text editor...
I just can't keep living on dreams no more
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Really? ???

Anyhoo, see easier installation of the script in previous post. Sorry.
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
emilystrange
Above the Chemist
Posts: 9021
Joined: 03 Nov 2003, 20:26
Location: Lady Strange's boudoir.

done it! fank oo xxx
I just can't keep living on dreams no more
User avatar
markfiend
goriller of form 3b
Posts: 21181
Joined: 11 Nov 2003, 10:55
Location: st custards
Contact:

Pleasure.

If it's working, all the links on this thread will now say [url=http://#]Clicky[/url] ;D
The fundamental cause of the trouble is that in the modern world the stupid are cocksure while the intelligent are full of doubt.
—Bertrand Russell
User avatar
James Blast
Banned
Posts: 24699
Joined: 11 Jun 2003, 18:58
Location: back from some place else

this MacGimp cannae get it tae work, can I book a tutorial for tomorrow?
"And when you start to think about death, you start to think about what's after it. And then you start hoping there is a God. For me, it's a frightening thought to go nowhere".
~ Peter Steele
Post Reply