Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
lisali

Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by lisali »

Hello!

Is there a way to rename Gmail tabs, such as Social, Promotions, Updates and Forums? I know that Gmail does not provide this functionality out of the box. However, maybe there's a way to do it with AdBlock Plus custom CSS - but how?

Thank you!
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by Gingerbread Man »

Hello,

Adblock Plus blocks things, while CSS changes the appearance of things. To change the title of a page, you need a user script.
https://addons.mozilla.org/firefox/addon/greasemonkey/
lisali

Re: Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by lisali »

Gingerbread Man wrote:Hello,

Adblock Plus blocks things, while CSS changes the appearance of things. To change the title of a page, you need a user script.
https://addons.mozilla.org/firefox/addon/greasemonkey/
Hi there,

Thanks so much for your response! I am aware of that. However, Adblock Plus has an option of "custom CSS" - what is that then?
Thanks!
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by Gingerbread Man »

lisali wrote:However, Adblock Plus has an option of "custom CSS" - what is that then?
Thanks!
Element hiding rules let you hide parts of the web page.
en/filters#elemhide

Custom CSS means you get to enter your own selector.
https://developer.mozilla.org/docs/Glos ... S_Selector

It doesn't mean you can apply any CSS you want to the page; only an equivalent of display: none !important is possible. That's a moot point anyway, since CSS has nothing to do with the page title, like I said earlier.
lisali

Re: Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by lisali »

Gingerbread Man wrote:
lisali wrote:However, Adblock Plus has an option of "custom CSS" - what is that then?
Thanks!
Element hiding rules let you hide parts of the web page.
en/filters#elemhide

Custom CSS means you get to enter your own selector.
https://developer.mozilla.org/docs/Glos ... S_Selector

It doesn't mean you can apply any CSS you want to the page; only an equivalent of display: none !important is possible. That's a moot point anyway, since CSS has nothing to do with the page title, like I said earlier.
Hi,

Thanks for your response.

"Display: none" is the default behaviour of any new filter. I get that. However, what is then the point of this, with the highlighted option of "Custom CSS"?

[img]
http://s3.postimg.org/qmv7h9d5f/ABP.png
[/img]

CSS does allow insertion of text "The ::before selector inserts content before the content of the selected element(s)." Also, I am NOT trying to change the page title. I was trying to change the title of a TAB within Gmail (Primary, Social, Promotions, etc.)

Thanks!
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: Rename Gmail tabs (Social, Promotions, Updates, Forums)?

Post by Gingerbread Man »

lisali wrote:"Display: none" is the default behaviour of any new filter. I get that.
There's no such thing as "default behavior" for filters. Filters perform one of three functions:
  • Blocking filters: prevent things from loading.
  • Element hiding filters: hide parts of the web page. This is equivalent to display: none !important
  • Exception filters: allow content that would otherwise be blocked or hidden by other filters.
lisali wrote:However, what is then the point of this, with the highlighted option of "Custom CSS"?
I already answered that question right in the message you quoted.
lisali wrote:CSS does allow
Selectors are the only part of CSS relevant to Adblock Plus element hiding filters.
lisali wrote:Also, I am NOT trying to change the page title. I was trying to change the title of a TAB within Gmail (Primary, Social, Promotions, etc.)
Then you can use either Greasemonkey or Stylish.
Post Reply