Greasy Fork is available in English.

Reduce Page Titles

Reduces certain page titles by removing substrings

Autor
harl
Installationen heute
0
Installationen gesamt
51
Bewertungen
1 0 0
Version
0.0.8
Erstellt am
17.07.2017
Letzte Aktualisierung
17.07.2017
Lizenz
n/a
Wird angewandt auf
Alle Seiten

This is a simple script that's supposed to reduce page titles by removing certain parts of it, like " - Google Search" or " - Wikipedia".
In order for it to work with a specific title, you'll have to edit the script and add the part(s) you want it to remove. (It's easy, just make sure the list/array structure remains intact. Site-specific strings obviously make more sense than single common words.)

Its main purpose is to reduce the screen space needed by titles, and to increase intuitive readability when there are many tabs (or page titles) visible - particularly with limited or variable width tabs in mind (e.g. with Tab Mix Plus' option to adapt tab width to the page title, as well as userChrome styles that increase the active tab's width).

This script:
- is rather inefficient (the more entries the array contains)
- doesn't take into account subsequent changes to the title (after the page is loaded), e.g. on some sites going forward/back resets the title, and some sites change their page titles dynamically.
Feel free to make any code suggestions (or a better script).