Greasemonkey Scripts For vB: Now With A "I Can't Believe It's Not Fusetalk" Script

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
I know you guys love your Greasemonkey scripts, so let's try to keep it all in one place.

----

Use GM Scripts in IE




GM Scripts
  • FTLook for vBulletin - Ken g6 has whipped up a Greasemonkey script that rearranges vB to look like Fusetalk. It's not perfectly identical, but it's much closer than the default AnandTech skin. So if you want something that better approximates Fusetalk, take a look at FTLook for vB. - Ken g6
    Note: This works best with Ken's Stylish script, below.
    http://userscripts.org/scripts/show/61852



  • Adblock sidebar killer filter . - dwell
    Code:
    anandtech.com#td(class*=page)






  • A script to change the color of links, since that was a popular one. vB uses the same color for visited and unvisited links, the following assigns unvisited links a different color so that you can tell the two apart.- ViRGE

    Code:
    // ==UserScript==
    // @name          Anandtech - gives visited links another color
    // @description	  Gives visited links another color on the new AT forums
    // @include       http://forums.anandtech.com/*
    // ==/UserScript==
    
    function addVistedColor()
    {
    	var head, style;
    	head = document.getElementsByTagName('head')[0];
    	
    	if (!head) { return; }
    	
    	style = document.createElement('style');
    	style.type = 'text/css';
            style.innerHTML = "a:link{color:#588BBE;} a:visited{color:darkblue;}";      
    	head.appendChild(style);
    }
    
    addVistedColor();






User Styles
Requires Stylish - Firefox and Thunderbird only, i guess



  • Remove the flicker - Lessens the flicker effect you get while pages are loading the GM script. Works best with Ken's FTLook for vBulletin GM script- Ken g6
    http://userstyles.org/styles/22529

  • Image Resizer This makes normal images no more than 800px wide, and images inside [ quote ]s the size of user icons. It only works on normal thread listings; e.g. if you click on a post number you'll see the full image.
    Code:
    @namespace url(http://www.w3.org/1999/xhtml);
    
    @-moz-document url-prefix("http://forums.anandtech.com/showthread.php") {
    /* Resize normal images. */
    #posts td.alt1 div img { max-width:800px; }
    /* Resize quoted images. */
    #posts td.alt1 div div td.alt2 div img { max-width:80px; max-height:80px; }
    }
 

Attachments

  • anandtechgivesvisitedlin.user.zip
    497 bytes · Views: 55
Last edited:

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Can we get one to add alternating styles to topics? So a slightly darker background on every other topic? That makes it a lot easier to read.
 

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
Can we get one to add alternating styles to topics? So a slightly darker background on every other topic? That makes it a lot easier to read.
I have the old version of that script for Fusetalk, but I have no idea how to fix it for vB.
 

SunnyD

Belgian Waffler
Jan 2, 2001
32,675
146
106
www.neftastic.com
Fresh off the press. Puts a hand dandy Forum Jumplist at the TOP of every page (below the navi bar / user status area, above the page navigation bar).

AT Top Jumplist - http://www.neftastic.com/atjumplist.user.js

jumplist.jpg


If there are any bugs or problems, please PM me with the information and I'll fix it asap.

---

Also, should still be relevant:

Remove all references to "Dynamite Media" redirection in AnandTech forum links.

AT Redirector Buster - http://www.neftastic.com/atredir.user.js
 
Last edited:

Spacehead

Lifer
Jun 2, 2002
13,067
9,858
136
Thanks SunnyD :)


Trying to consolidate all the scripts into one post for easier searching.

Use GM Scripts in IE




GM Scripts



  • Adblock sidebar killer filter . - dwell
    Code:
    anandtech.com#td(class*=page)






  • A script to change the color of links, since that was a popular one. vB uses the same color for visited and unvisited links, the following assigns unvisited links a different color so that you can tell the two apart.- ViRGE

    Code:
    // ==UserScript==
    // @name          Anandtech - gives visited links another color
    // @description	  Gives visited links another color on the new AT forums
    // @include       http://forums.anandtech.com/*
    // ==/UserScript==
    
    function addVistedColor()
    {
    	var head, style;
    	head = document.getElementsByTagName('head')[0];
    	
    	if (!head) { return; }
    	
    	style = document.createElement('style');
    	style.type = 'text/css';
            style.innerHTML = "a:link{color:#588BBE;} a:visited{color:darkblue;}";      
    	head.appendChild(style);
    }
    
    addVistedColor();






User Styles
Requires Stylish - Firefox and Thunderbird only, i guess



  • Remove the flicker - Lessens the flicker effect you get while pages are loading the GM script. Works best with Ken's FTLook for vBulletin GM script- Ken g6
    http://userstyles.org/styles/22529

  • Image Resizer This makes normal images no more than 800px wide, and images inside [ quote ]s the size of user icons. It only works on normal thread listings; e.g. if you click on a post number you'll see the full image.
    Code:
    @namespace url(http://www.w3.org/1999/xhtml);
    
    @-moz-document url-prefix("http://forums.anandtech.com/showthread.php") {
    /* Resize normal images. */
    #posts td.alt1 div img { max-width:800px; }
    /* Resize quoted images. */
    #posts td.alt1 div div td.alt2 div img { max-width:80px; max-height:80px; }
    }
 
Last edited:

Kev

Lifer
Dec 17, 2001
16,367
4
81
Is it possible to convert smilies to text? Thought I had seen that before. Otherwise I just image block them.
 

SunnyD

Belgian Waffler
Jan 2, 2001
32,675
146
106
www.neftastic.com
Also as a side note: Most Greasemonkey scripts also work in Chrome natively, and should work in Safari with GreaseKit (or CreamMonkey, no idea which one is supported better as I don't run Safari).

Assuming you have one of the newer versions of Chrome, to enable userland scripting support in Chrome simply edit your Chrome shortcut as follows:

"C:\Documents and Settings\desiwko\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --enable-user-scripts --user-scripts-dir=c:\scripts

Obviously your paths will be somewhat different. Once done, place whatever scripts you want enabled in the directory specified by --user-scripts-dir and restart the browser. At this point whatever scripts you have loaded should be happily working.

Again, I apologize that I do not have instructions for Safari. Please see the relevant information provided with GreaseKit and/or Creammonkey.
 
Last edited:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,695
4,658
75
With the addition of the side column of forums...comes a way to remove it if you want:

Code:
// ==UserScript==
// @name            Platypus-AT forums list remover
// @namespace       Platypus
// @include         http://forums.anandtech.com/*
// ==/UserScript==
function do_platypus_script() {
smart_remove(window.document,document.evaluate('id("collapseobj_leftsidebar_1")/../..', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
}; // Ends do_platypus_script
window.addEventListener("load", function() { do_platypus_script() }, false);

//
//  Mon Dec 19 15:59:37 2005 -- Scott R. Turner
//  Short, uncommented file containing all the code to implement Platypus
//  actions.  Can be "included" into the Platypus script.
//
// 
// 
function smart_remove(doc, node) {
    if (node.parentNode.childNodes.length == 1) {
smart_remove(doc, node.parentNode);
    } else {
remove_it(doc, node);
    };
};
function remove_it(doc, node) {
  if (doc == null || node == null) return;
  if (!node.parentNode) return;
  node.style.display = "none";
  doc.last_removed_node = node;
};
Made with Platypus if you didn't notice; then edited with GVim. Hope it works for everybody. :)

Edit: Just happened to realize there might be an ad there that AdBlock was blocking. You can delete this if that's a problem.
 
Last edited:

Platypus

Lifer
Apr 26, 2001
31,046
321
136
With the addition of the side column of forums...comes a way to remove it if you want:

Code:
// ==UserScript==
// @name            Platypus-AT forums list remover
// @namespace       Platypus
// @include         http://forums.anandtech.com/*
// ==/UserScript==
function do_platypus_script() {
smart_remove(window.document,document.evaluate('id("collapseobj_leftsidebar_1")/../..', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
}; // Ends do_platypus_script
window.addEventListener("load", function() { do_platypus_script() }, false);

//
//  Mon Dec 19 15:59:37 2005 -- Scott R. Turner
//  Short, uncommented file containing all the code to implement Platypus
//  actions.  Can be "included" into the Platypus script.
//
// 
// 
function smart_remove(doc, node) {
    if (node.parentNode.childNodes.length == 1) {
smart_remove(doc, node.parentNode);
    } else {
remove_it(doc, node);
    };
};
function remove_it(doc, node) {
  if (doc == null || node == null) return;
  if (!node.parentNode) return;
  node.style.display = "none";
  doc.last_removed_node = node;
};
Made with Platypus if you didn't notice; then edited with GVim. Hope it works for everybody. :)

Edit: Just happened to realize there might be an ad there that AdBlock was blocking. You can delete this if that's a problem.

I'm honored :D

edit: it works well though unfortunately it renders it for a good few seconds before removing it when you hit refresh on a page. This behavior does not happen as much when following normal links but is still noticeable sometimes. I'm not sure there's anything you can do about that but that would be sweet if so.
 
Last edited:

rise

Diamond Member
Dec 13, 2004
9,116
46
91
hnn, is there a way to make the sidebar more narrow? maybe pushed to the left alittle?

i like the sidebar but damn it takes up too much space :(
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
hnn, is there a way to make the sidebar more narrow? maybe pushed to the left alittle?

i like the sidebar but damn it takes up too much space :(

This would actually be ideal, further down the page would be awesome too.
 

n7

Elite Member
Jan 4, 2004
21,281
4
81
hnn, is there a way to make the sidebar more narrow? maybe pushed to the left alittle?

i like the sidebar but damn it takes up too much space :(

Bingo.

It effs up fitting in my 1200x1600 display now; i have to scroll to the side, which is insanely annoying.

There's gotta be someway to slim it down, or have a fit to page option for the forums...
 

Spacehead

Lifer
Jun 2, 2002
13,067
9,858
136
With the addition of the side column of forums...comes a way to remove it if you want:

Made with Platypus if you didn't notice; then edited with GVim. Hope it works for everybody. :)

Edit: Just happened to realize there might be an ad there that AdBlock was blocking. You can delete this if that's a problem.
So we have to install Platypus to run this or can we run it under Greasemonkey?



I'm honored :D

edit: it works well though unfortunately it renders it for a good few seconds before removing it when you hit refresh on a page. This behavior does not happen as much when following normal links but is still noticeable sometimes. I'm not sure there's anything you can do about that but that would be sweet if so.
Yeah, make an option to hide it under vB.
 
Last edited:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,695
4,658
75
So we have to install Platypus to run this or can we run it under Greasemonkey?

Platypus generates Greasemonkey scripts. I think this one at least will work on its own.

I'm honored :D

edit: it works well though unfortunately it renders it for a good few seconds before removing it when you hit refresh on a page. This behavior does not happen as much when following normal links but is still noticeable sometimes. I'm not sure there's anything you can do about that but that would be sweet if so.

Use Chris' AdBlock filter. It works even better! Thanks, Chris!
icon14.gif
 

Spacehead

Lifer
Jun 2, 2002
13,067
9,858
136
Is it possible to convert smilies to text? Thought I had seen that before. Otherwise I just image block them.
Does diabling smilies in your User CP do that? Or does it just remove them altogether?
edit- guess it just shows the code for the smiley



How do you run these scripts?
If you have FF, go download & install the Greasemonkey addon.
For the script SunnyD made, just click on the ".user.js" link in his post & it will install itself.

As for the other ones, you can copy the code into NotePad or something, save it as whatever you want to call it & save it as a .user.js file
( *.user.js )

But i need refreshed on how to add them manually into Greasemonkey.
Any help on that?