I am new to this Javascript stuff, so please excuse my main question. I am trying to find a way to remove part of the title of a webpage using Javascript in usercript. Take for example the title of this page:
How to remove part of a web page header using Javascript - stack overflow
I want to pull out the name "-" and "Website" so that it becomes the following:
How to remove part of a web page header using Javascript
I know how to change the whole title using document.title = "new title";, but it's about the near I can get. Can anybody help?
Thanks in advance.
source
share