Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Greasemonkey script: Remove avatars and link images

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
jiiui
How do I cheat?
Reputation: -1

Joined: 11 Nov 2010
Posts: 4

PostPosted: Sat Dec 04, 2010 4:41 pm    Post subject: Greasemonkey script: Remove avatars and link images Reply with quote

1) Removes all avatars.
2) All sig images and all inline images are replaced with a link with text "[image]".
Does NOT remove attachments. (coming soon)


TODO:
Make all part optional (EG allow removing only of sig images, keeping avvies.
For now you can edit it yourself.

Link attachments too.

Enjoy!

Code:

// ==UserScript==
// @name           Cheat Engine Forums: Remove avatars and replace post and sig images with links
// @namespace      jiiui
// @include        http://forum.cheatengine.org/*
// ==/UserScript==

var images = document.getElementsByTagName("img");
var j;

for (var i in images)
{
  j = i;
 
  if (images[j].parentNode.className == 'postdetails')
  {
    images[j].removeAttribute('src'); // Prevent them from loading at all.
    images[j].style.display = "none"; // Prevent broken image icon from showing.
  }
 
  else if (images[j].parentNode.className == 'postbody')
  {
    if (images[j].getAttribute('src').indexOf('smiles') == -1)
    {

      images[j].style.display = "none";
      var ilink = document.createElement("a");
      ilink.appendChild(document.createTextNode(" [image] "));
      ilink.setAttribute('href', images[j].getAttribute('src'));
      images[j].removeAttribute('src');
      images[j].parentNode.insertBefore(ilink, images[j]);
    }
  }
}

Back to top
View user's profile Send private message
Butters
Grandmaster Cheater Supreme
Reputation: 71

Joined: 17 Mar 2007
Posts: 1373

PostPosted: Sat Dec 04, 2010 4:44 pm    Post subject: Reply with quote

Solutions to problems that don't exist.
Back to top
View user's profile Send private message
Garavito
Master Cheater
Reputation: 0

Joined: 21 Jun 2009
Posts: 387

PostPosted: Sat Dec 04, 2010 4:56 pm    Post subject: Reply with quote

Why would anyone need this?
_________________
Back to top
View user's profile Send private message
jiiui
How do I cheat?
Reputation: -1

Joined: 11 Nov 2010
Posts: 4

PostPosted: Sat Dec 04, 2010 4:59 pm    Post subject: Reply with quote

for me they do exist, partially because I often find them annoying and partially because enormous animated gifs post a genuine threat to my 7gb/monthish download limit. Just throwing this out there for anyone with a similar problem. And no offense to anyone with huge gifs, since they don't annoy me any more, and this was good practice.
Back to top
View user's profile Send private message
bfsdbsdfbdsfb
Grandmaster Cheater
Reputation: 54

Joined: 06 Sep 2007
Posts: 702
Location: Oh noez.

PostPosted: Sat Dec 04, 2010 5:01 pm    Post subject: Reply with quote

>7gb/month limit
How is it back there in the 20'th century?

_________________
bsdfbdsfb
Back to top
View user's profile Send private message
jiiui
How do I cheat?
Reputation: -1

Joined: 11 Nov 2010
Posts: 4

PostPosted: Sat Dec 04, 2010 5:22 pm    Post subject: Reply with quote

It sucks.
Back to top
View user's profile Send private message
Garavito
Master Cheater
Reputation: 0

Joined: 21 Jun 2009
Posts: 387

PostPosted: Sat Dec 04, 2010 5:25 pm    Post subject: Reply with quote

jiiui wrote:
It sucks.


It's okay, we still love you.

_________________
Back to top
View user's profile Send private message
br0l0ck
Cheater
Reputation: 63

Joined: 15 Aug 2007
Posts: 36

PostPosted: Sat Dec 04, 2010 5:37 pm    Post subject: Reply with quote

time to start a war

master race:
Back to top
View user's profile Send private message
Butters
Grandmaster Cheater Supreme
Reputation: 71

Joined: 17 Mar 2007
Posts: 1373

PostPosted: Sat Dec 04, 2010 5:41 pm    Post subject: Reply with quote

Brolock wrote:
time to start a war

master race:
>Opera caters to people with stone age limits
Master Race indeed.
Back to top
View user's profile Send private message
br0l0ck
Cheater
Reputation: 63

Joined: 15 Aug 2007
Posts: 36

PostPosted: Sat Dec 04, 2010 5:42 pm    Post subject: Reply with quote

Yes, it even has turbo which really just lowers jpg quality so you load shit faster.
Back to top
View user's profile Send private message
Butters
Grandmaster Cheater Supreme
Reputation: 71

Joined: 17 Mar 2007
Posts: 1373

PostPosted: Sat Dec 04, 2010 5:43 pm    Post subject: Reply with quote

Not really a problem to the kind of people who even begin participating in browser master race arguments, though. Just another interesting and handy addition that very many people will use. That being said, I don't care for what browser I use, I rotate them every so often to compare and contrast.
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sat Dec 04, 2010 5:45 pm    Post subject: Reply with quote

I say bring on the huge animated images, I love them.
Back to top
View user's profile Send private message
br0l0ck
Cheater
Reputation: 63

Joined: 15 Aug 2007
Posts: 36

PostPosted: Sat Dec 04, 2010 5:46 pm    Post subject: Reply with quote

All browsers have their pros and cons(obviously), op might actually be better off using opera if he needs shit like that, but if he wants to take the time for a more accurate way then ff is fine.

But in the end your browser doesnt matter if your internet is shit OP.
Back to top
View user's profile Send private message
the the the
Master Cheater
Reputation: 46

Joined: 15 Jun 2008
Posts: 429

PostPosted: Sat Dec 04, 2010 6:22 pm    Post subject: Reply with quote

jiiui wrote:
for me they do exist, partially because I often find them annoying and partially because enormous animated gifs post a genuine threat to my 7gb/monthish download limit. Just throwing this out there for anyone with a similar problem. And no offense to anyone with huge gifs, since they don't annoy me any more, and this was good practice.
You only load it once.













Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites