Adding Company Name

in
Subscribe to Adding Company Name 2 posts, 2 voices



Dave Jenkins User
FirefoxWindows

Hi Alex,

This script is sooooo useful. What would i need to do to add the company name too, i have lots of clients setup with the same name project (e.g. Web Amends).

The company name is already contained in the title tag of the link so its just a matter of adding it to the visible text as per project name.

The only issue is I understand Klingon better than javascript. Can you point me in the right direction?

Many many thanks.

 
Alex Burkhardt Script's Author
FirefoxWindows

Hi Dave,

That´s actually quite easy to do:

Download the new version of the script, as I just updated it. Then open the script in a text editor through the edit button in the "Manage user scripts" window. Then change line 35 to the following:

var titleText = document.createTextNode("("+projectName[1]+" - "+projectName[0]+")");

Let me know if it works for you or if you need the company name somewhere else.

Alex

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel