How Do I Exclude FB Using Stylus?

User Help for Mozilla Firefox
Post Reply
Wiggam72
Posts: 451
Joined: July 30th, 2013, 9:05 am

How Do I Exclude FB Using Stylus?

Post by Wiggam72 »

Okay, I've just removed the styles add-on theme Stylish and I'm now using Stylus. The theme is Dark is better for my eyes - Global Web V1.12. I'm using other themes for FB. I can't figure out how to exclude ONLY FB. Where and what am I supposed to enter?

If I click on the Stylus button on the toolbar and click the pencil (edit button), I see the following:

1 @namespace html url(http://www.w3.org/1999/xhtml);
2
3 /* i really want this to be global */
4
5
6 /*----- WEBSITES TO EXCLUDE -----*/
7 /*-- Use a "|" symbol to separate websites to exclude --*/
8
9 /*----- SITES WEB A EXCLURE -----*/
10 /*-- Utilisez le symbole "|" pour séparer les sites web à exclure --*/
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: How Do I Exclude FB Using Stylus?

Post by Brummelchen »

stylus only can include, not exclude. so you have to define sites where styles should be used, not vice versa.
Wiggam72
Posts: 451
Joined: July 30th, 2013, 9:05 am

Re: How Do I Exclude FB Using Stylus?

Post by Wiggam72 »

Huh?!! Then why does it say, 6 /*----- WEBSITES TO EXCLUDE -----*/ :?
atlanto
Posts: 97
Joined: March 7th, 2015, 4:19 pm
Location: Japan

Re: How Do I Exclude FB Using Stylus?

Post by atlanto »

Dark is better for my eyes - Global Web V1.12 is for legacy(up to 2.1.1) Stylish. Not for v3 or later, not for Stylus.
Code 1 section has no sence. (it looks like importer/converter failure)
Go to Code 2 section, you can see "URLs matching the regexp" listbox, then edit the textbox,
from
https?://(?!(www.tvtime.com|www.t411.al|www.nespresso.com|www.wechoosethemoon.org|www.nasa.gov|www.site-a-exclure.com|www.site-to-exclude.com)).*
to (for example)
https?://(?!(www.facebook.com|www.tvtime.com|www.t411.al|www.nespresso.com|www.wechoosethemoon.org|www.nasa.gov|www.site-a-exclure.com|www.site-to-exclude.com)).*
And then save the style.
flaneurb
Posts: 622
Joined: December 10th, 2011, 3:50 am

Re: How Do I Exclude FB Using Stylus?

Post by flaneurb »

@atlanto, you can use code tags to make your content a little clearer. So,

Code: Select all

https?://(?!(www.tvtime.com|www.t411.al|www.nespresso.com|www.wechoosethemoon.org|www.nasa.gov|www.site-a-exclure.com|www.site-to-exclude.com)).*
and

Code: Select all

https?://(?!(www.facebook.com|www.tvtime.com|www.t411.al|www.nespresso.com|www.wechoosethemoon.org|www.nasa.gov|www.site-a-exclure.com|www.site-to-exclude.com)).*
flaneurb
Posts: 622
Joined: December 10th, 2011, 3:50 am

Re: How Do I Exclude FB Using Stylus?

Post by flaneurb »

Brummelchen wrote:stylus only can include, not exclude. so you have to define sites where styles should be used, not vice versa.
See atlanto's post for how to exclude sites.
Wiggam72
Posts: 451
Joined: July 30th, 2013, 9:05 am

Re: How Do I Exclude FB Using Stylus?

Post by Wiggam72 »

atlanto' and flaneurb I tried both codes and it still doesn't work.

BTW, I first copied and pasted atlanto's code directly from this thread for this post to show which ones, but when I tried to copy flaneurb's code directly from this thread and paste it, it wouldn't do it. It kept pasting atlanto's code so I just deleted it. Very strange.

Has anyone tried the codes to see if it works for them?
Post Reply