Reduce Page Titles

Reduces certain page titles by removing substrings

Penulis
harl
Pemasangan harian
0
Total pemasangan
51
Nilai
1 0 0
Versi
0.0.8
Dibuat
17 Juli 2017
Diperbarui
17 Juli 2017
Lisensi
N/A
Berlaku untuk
Semua situs

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