http://userscripts.org/scripts/show/7780
(greasemonkey script for firefox)
I've found a fix for browser-wide-on images
- lazarus corporation
- Lord Protector
- Posts: 3444
- Joined: 09 May 2004, 17:42
- Location: out there on a darkened road
- Contact:
Nice find!
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
Bog off
This one works on any and all websites, including ones we don't have moderating privileges on...
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
—Bertrand Russell
- 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?
- EvilBastard
- Overbomber
- Posts: 3934
- 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...
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
Hank Moody
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
Have you got the greasemonkey extension for firefox? It's a script for that.Obviousman wrote:Looks cool, so I just downloaded this, now how can I get it to work?
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
—Bertrand Russell
- weebleswobble
- Underneath the Rock
- Posts: 5875
- Joined: 09 Feb 2006, 06:57
- Location: The Bat-Milk Cave
- Contact:
I've got a greased monkey
‎"We will wear some very loud shirts. We will wear some very wrong trousers."
Nice one Mark.
A small suggested modification (to preserve the aspect ratio and reduce to 60%):
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 (i = 0; i < z.length; i++)
{
if (z[i].width >= screen.width * 0.60)
{
var aspect = (z[i].width / z[i].height);
z[i].width = screen.width * 0.60;
z[i].height = z[i].width / aspect;
}
}
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
- Obviousman
- Outside the Simian Flock
- Posts: 7090
- Joined: 22 Aug 2004, 12:14
- Location: Soon over Babaluma
- Contact:
Got it, should've installed that first. Doh...markfiend wrote:Have you got the greasemonkey extension for firefox? It's a script for that.Obviousman wrote:Looks cool, so I just downloaded this, now how can I get it to work?
It should just work.
I'll change it to mh's version, sounds better to me!
- 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. Edit to add: mh WTF have you done with the code format man? Opening braces on their own line? What's that all about?
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://*
// ==/UserScript==
var z = document.getElementsByTagName('img');
for(i=0;i<z.length;i++) {
if(z[i].width >= screen.width*0.6) {
z[i].width = screen.width*0.6;
}
}
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
—Bertrand Russell
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?
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
- markfiend
- goriller of form 3b
- Posts: 21181
- Joined: 11 Nov 2003, 10:55
- Location: st custards
- Contact:
That's just evil though. I had it formatted by the one true code formatmh 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?
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
—Bertrand Russell
markfiend wrote:That's just evil though. I had it formatted by the one true code formatmh 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?
If I told them once, I told them a hundred times to put 'Spinal Tap' first and 'Puppet Show' last.
- 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://www.markfiend.com/scripts
// @description For blogs and messageboards: if the link text is the same as the link destination, changes the link text to 'Clicky'
// @include *
// ==/UserScript==
var z = document.getElementsByTagName('a');
for(i=0;i<z.length;i++) {
if(z[i].href == z[i].innerHTML && z[i].href != '') {
z[i].innerHTML = '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
—Bertrand Russell
- emilystrange
- Above the Chemist
- Posts: 9031
- Joined: 03 Nov 2003, 20:26
- Location: Lady Strange's boudoir.
yes but what do i DO with it?
I don't wanna live like I don't mind
- 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.)
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://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
—Bertrand Russell
- 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'
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
—Bertrand Russell
- emilystrange
- Above the Chemist
- Posts: 9031
- 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 don't wanna live like I don't mind
- 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.
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
—Bertrand Russell
- emilystrange
- Above the Chemist
- Posts: 9031
- Joined: 03 Nov 2003, 20:26
- Location: Lady Strange's boudoir.
done it! fank oo xxx
I don't wanna live like I don't mind
- 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]
If it's working, all the links on this thread will now say [url=http://#]Clicky[/url]
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
—Bertrand Russell
- 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
~ Peter Steele