• Hi, I am the owner and main administrator of Styleforum. If you find the forum useful and fun, please help support it by buying through the posted links on the forum. Our main, very popular sales thread, where the latest and best sales are listed, are posted HERE

    Purchases made through some of our links earns a commission for the forum and allows us to do the work of maintaining and improving it. Finally, thanks for being a part of this community. We realize that there are many choices today on the internet, and we have all of you to thank for making Styleforum the foremost destination for discussions of menswear.
  • This site contains affiliate links for which Styleforum may be compensated.
  • We would like to welcome Styleforum's newest Affiliate VendorManning Company Bespoke Tailors!

    Since 1979, this Hong Kong-based tailor has crafted exquisite bespoke menswear and womenswear. Serving clients worldwide, they host trunk shows across the US, Europe, and Australia, offering personalized consultations. Clients can bring their favorite garments or style inspirations—from business formal attire and wedding ensembles to casual wear—to recreate their favorite pieces. Visit the Official Affiliate Vendor Thread here and give them a warm Styleforum welcome.

  • STYLE. COMMUNITY. GREAT CLOTHING.

    Bored of counting likes on social networks? At Styleforum, you’ll find rousing discussions that go beyond strings of emojis.

    Click Here to join Styleforum's thousands of style enthusiasts today!

    Styleforum is supported in part by commission earning affiliate links sitewide. Please support us by using them. You may learn more here.

How to hide CEsspool links with Firefox and Greasemonkey

robin

Stylish Dinosaur
Joined
Dec 5, 2006
Messages
12,378
Reaction score
161
If you use the "New Posts" feature frequently, you're probably annoyed like I am with the large number of rows that show up for the Current Events forum. If you use Firefox and install the Greasemonkey plugin, you can now hide them from view with this script I just whipped up.

Disclaimer: I have not tested this beyond Firefox 3. It's also not my fault if your computer breaks.

Steps:

1. Install Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
2. Create a new user script. Select Tools > Greasemonkey > New User Script...
3. In the New User Script window, enter a name for the script like "Hide CEsspool". Namespace can be set to "http://blah". Set includes to "http://www.styleforum.net/*".

It will look like this:
hide_cesspool_1.jpg


Hit the OK button.

4. It will ask you to choose a text editor. Find notepad.exe or wordpad.exe in your windows directory.
5. Once your text editor is opened, delete all of the text shown, paste in this code, and save the document.

Code:

// ==UserScript==
// @name\t\tHide CEsspool
// @author\t\tRobin
// @include\t\thttp://www.styleforum.net/*
// ==/UserScript==
rows = document.evaluate('//tr/td/a[@href="forumdisplay.php?f=8"]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null)
for (i = 0; i < rows.snapshotLength; i++) {
(foo = rows.snapshotItem(i).parentNode.parentNode).parentNode.removeChild(foo)
};

Screenshot of what it should look like:
hide_cesspool_2.jpg


6. Open the Manage User Scripts page if it's not already. Select Tools > Greasemonkey > Manage User Scripts.... Check that http://www.styleforum.net/* is shown in the included URL's.

hide_cesspool_3.jpg


7. Close the greasemonkey menus and try New Posts again. CEsspool links should disappear.


I've also compiled the script into a Firefox plugin and it seems to also work without having to install greasemonkey, but I don't have a place to host it yet. Maybe tonight.
 

Featured Sponsor

Who are your favorite fabric producers for MTM/Bespoke shirts? Choose up to 3

  • Albini

  • Canclini

  • Thomas Mason

  • Grandi & Rubinelli

  • Monti

  • Bonfanti

  • Söktas

  • David & John Anderson

  • Leggiuno

  • Testa

  • S.I.C. Tess

  • Alumo

  • Getzner


Results are only viewable after voting.

Forum statistics

Threads
526,168
Messages
10,766,043
Members
230,355
Latest member
blackdressshirt
Top