Reduce Page Titles

Reduces certain page titles by removing substrings

Author
harl
Daily installs
0
Total installs
49
Ratings
1 0 0
Version
0.0.8
Created
2017-07-17
Updated
2017-07-17
License
N/A
Applies to
All sites

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).