Simple Stylish Firefox Question


Recommended Posts

I think seahorsepip could help but I think Greasemonkey scripts would be really preferred method to do so.

Some stackoverflow articles to see:

 

http://stackoverflow.com/questions/694486/replace-image-through-css

 

Greasemonkey method - http://linustechtips.com/main/topic/77584-greasemonkey-or-stylish-for-changing-picture-on-website-locally/

Link to comment
Share on other sites

Well, I'm not familiar with Stylish, but here's one way for GreaseMonkey.  

// ==UserScript==
// @name        Replace Image
// @namespace   neowin.net
// @version     1
// @grant       none
// ==/UserScript==
 
var tags = document.getElementsByTagName('img');
 
for (var i = 0; i < tags.length; i++) {
 
    tags[i].src = tags[i].src.replace('https://www.neowin.net/forum/uploads/profile/photo-thumb-102811.png', 'http://cs11396.vk.me/u43634025/59225345/x_7ca40c5e.jpg');
 
}
 
Result:
firefodjd.png
 
(Sorry.  Just an example.)  Edit - Same as above, posted near same time.  Oops.
Link to comment
Share on other sites

I'm with Boo: really?

 

Seriously, why would you?

Because I want certain members to have themed avatars. :)

 

 

I think seahorsepip could help but I think Greasemonkey scripts would be really preferred method to do so.

Some stackoverflow articles to see:

 

http://stackoverflow.com/questions/694486/replace-image-through-css

 

Greasemonkey method - http://linustechtips.com/main/topic/77584-greasemonkey-or-stylish-for-changing-picture-on-website-locally/

 

 

Well, I'm not familiar with Stylish, but here's one way for GreaseMonkey.  

// ==UserScript==
// @name        Replace Image
// @namespace   neowin.net
// @version     1
// @grant       none
// ==/UserScript==
 
var tags = document.getElementsByTagName('img');
 
for (var i = 0; i < tags.length; i++) {
 
    tags[i].src = tags[i].src.replace('https://www.neowin.net/forum/uploads/profile/photo-thumb-102811.png', 'http://cs11396.vk.me/u43634025/59225345/x_7ca40c5e.jpg');
 
}
 
Result:
firefodjd.png
 
(Sorry.  Just an example.)  Edit - Same as above, posted near same time.  Oops.

 

Thanks guys! Will try these out. :)

Link to comment
Share on other sites

Here's some stylish code:

a.ipsUserPhotoLink[title="View Profile: Seahorsepip"] {
    height: 90px !important;
    width: 90px !important;
    background: url("replacement image") center center no-repeat !important;
    display: inline-block !important;
}
a.ipsUserPhotoLink[title="View Profile: Seahorsepip"] img.ipsUserPhoto.ipsUserPhoto_large {
    display: none !important;
}

Replace Seahorsepip with the username of the target.

  • Like 2
Link to comment
Share on other sites

I bet LimeMaster is changing my avatar on his end. 

 

 

Weird Lime! 

 

 

:p

Actually, if you look at the one of the sample codes posted, it was Boo Berry's. :p But maybe I'll change more later.

Link to comment
Share on other sites

Well, I agree with what Boo Berry said.

 

I don't get it. Why would you want to do this?

 

I have no problem with any of the avatars that are showing on Neowin that each user choose based on his/her style.

Link to comment
Share on other sites

Well, there are many reasons why some people would do this. Some of which have been discussed before. I'll list some of them for you:

* Some people have a dislike for animated avatars, as you'll remember from the numerous topics about disallowing them.

* Some people like to experiment

* It can make it look like the person is contributing to the animal approval movement. :p

Link to comment
Share on other sites

Well, there are many reasons why some people would do this. Some of which have been discussed before. I guess I'll list some of them:

* Some people have a dislike for animated avatars, as you'll remember from the numerous topic about disallowing them.

* Some people like to experiment

* It can make it look like the person is contributing to the animal approval movement. :p

 

Solution for animated avatars:

 

With Stylish:

https://www.neowin.net/forum/topic/1232043-disallow-animated-avatars-and-signatures/page-4#entry596605781

 

With Adblock Plus or other such addons:

https://www.neowin.net/forum/topic/1232043-disallow-animated-avatars-and-signatures/page-4#entry596606011

Link to comment
Share on other sites

I didn't say I disliked them. I just meant that some people do, but thanks anyway!

Link to comment
Share on other sites

This topic is now closed to further replies.