| View previous topic :: View next topic |
| Author |
Message |
jiiui How do I cheat?
Reputation: -1
Joined: 11 Nov 2010 Posts: 4
|
Posted: Sat Dec 04, 2010 4:41 pm Post subject: Greasemonkey script: Remove avatars and link images |
|
|
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 |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Sat Dec 04, 2010 4:44 pm Post subject: |
|
|
| Solutions to problems that don't exist. |
|
| Back to top |
|
 |
Garavito Master Cheater
Reputation: 0
Joined: 21 Jun 2009 Posts: 387
|
Posted: Sat Dec 04, 2010 4:56 pm Post subject: |
|
|
Why would anyone need this? _________________
|
|
| Back to top |
|
 |
jiiui How do I cheat?
Reputation: -1
Joined: 11 Nov 2010 Posts: 4
|
Posted: Sat Dec 04, 2010 4:59 pm Post subject: |
|
|
| 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 |
|
 |
bfsdbsdfbdsfb Grandmaster Cheater
Reputation: 54
Joined: 06 Sep 2007 Posts: 702 Location: Oh noez.
|
Posted: Sat Dec 04, 2010 5:01 pm Post subject: |
|
|
>7gb/month limit
How is it back there in the 20'th century? _________________
bsdfbdsfb |
|
| Back to top |
|
 |
jiiui How do I cheat?
Reputation: -1
Joined: 11 Nov 2010 Posts: 4
|
Posted: Sat Dec 04, 2010 5:22 pm Post subject: |
|
|
| It sucks. |
|
| Back to top |
|
 |
Garavito Master Cheater
Reputation: 0
Joined: 21 Jun 2009 Posts: 387
|
Posted: Sat Dec 04, 2010 5:25 pm Post subject: |
|
|
It's okay, we still love you. _________________
|
|
| Back to top |
|
 |
br0l0ck Cheater
Reputation: 63
Joined: 15 Aug 2007 Posts: 36
|
Posted: Sat Dec 04, 2010 5:37 pm Post subject: |
|
|
time to start a war
master race:
 |
|
| Back to top |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Sat Dec 04, 2010 5:41 pm Post subject: |
|
|
| Brolock wrote: | time to start a war
master race:
 | >Opera caters to people with stone age limits
Master Race indeed. |
|
| Back to top |
|
 |
br0l0ck Cheater
Reputation: 63
Joined: 15 Aug 2007 Posts: 36
|
Posted: Sat Dec 04, 2010 5:42 pm Post subject: |
|
|
| Yes, it even has turbo which really just lowers jpg quality so you load shit faster. |
|
| Back to top |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Sat Dec 04, 2010 5:43 pm Post subject: |
|
|
| 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 |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Sat Dec 04, 2010 5:45 pm Post subject: |
|
|
| I say bring on the huge animated images, I love them. |
|
| Back to top |
|
 |
br0l0ck Cheater
Reputation: 63
Joined: 15 Aug 2007 Posts: 36
|
Posted: Sat Dec 04, 2010 5:46 pm Post subject: |
|
|
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 |
|
 |
the the the Master Cheater
Reputation: 46
Joined: 15 Jun 2008 Posts: 429
|
Posted: Sat Dec 04, 2010 6:22 pm Post subject: |
|
|
| 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 |
|
 |
|