Jump to content

Change title and icon for caches and TBs


roolku

Recommended Posts

Posted

After this post I tried a few things and came up with a way to change the page icon (favicon) to the appropriate cache icon in addition to changing the title. I then applied the same mechanism to the TB/coin pages. This makes the tabs much more recognisable and distinguishable at first glance:

 

tabdemo.gif

 

Here are the scripts if you like the idea.

 

- install CacheTitle

- install TBTitle

 

I have changed the title display to only show the cache/tb name, but it is easily amendable in the script by concatenating the elements ar[1], ar[2] etc which contain the components from the original title.

Posted

Hi Roolku, cheers for that! :lol: That's much easier to read :huh:

 

You say you can alter the script....

....but it is easily amendable in the script by concatenating the elements ar[1], ar[2] etc which contain the components from the original title.

....How do I alter it slightly so that it can show the GC***** waypoint code? (sorry, don't know much at all about scripts) :huh:

 

Cheers :o

Posted

How do I alter it slightly so that it can show the GC***** waypoint code? (sorry, don't know much at all about scripts) :huh:

 

- right-click on the little monkey in the statusbar and select "Manage user script"

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

- the last line reads:

 

favicon.change("http://www.geocaching.com/images/WptTypes/sm/"+icon+".gif", ar[4]);

 

- if you only want to display the GC code, replace ar[4] with: ar[1]

- if you want to display both with a hyphen inbetween replace ar[4] with: ar[1]+" - "+ar[4]

- if you want the code after the name in brackets replace ar[4] with: ar[4]+" ("+ar[1]+")"

 

and so on (you get the idea).

 

Save the file and close the editor. Bingo.

Posted

How do I alter it slightly so that it can show the GC***** waypoint code? (sorry, don't know much at all about scripts) :huh:

 

- right-click on the little monkey in the statusbar and select "Manage user script"

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

- the last line reads:

 

favicon.change("http://www.geocaching.com/images/WptTypes/sm/"+icon+".gif", ar[4]);

 

- if you only want to display the GC code, replace ar[4] with: ar[1]

- if you want to display both with a hyphen inbetween replace ar[4] with: ar[1]+" - "+ar[4]

- if you want the code after the name in brackets replace ar[4] with: ar[4]+" ("+ar[1]+")"

 

and so on (you get the idea).

 

Save the file and close the editor. Bingo.

Cheers Roolku, that worked a treat :lol:

 

I'd almost sorted it, but thought I might need a fancy editor to change the script.

 

Thanks again. :huh:

Posted

- right-click on the little monkey in the statusbar and select "Manage user script"

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

- the last line reads:

 

favicon.change("http://www.geocaching.com/images/WptTypes/sm/"+icon+".gif", ar[4]);

 

- if you only want to display the GC code, replace ar[4] with: ar[1]

- if you want to display both with a hyphen inbetween replace ar[4] with: ar[1]+" - "+ar[4]

- if you want the code after the name in brackets replace ar[4] with: ar[4]+" ("+ar[1]+")"

 

and so on (you get the idea).

 

Save the file and close the editor. Bingo.

Cool! :huh:

It may seem obvious to some, but you can also edit the TB title version to give the code and name - replace ar[3] with ar[1]+" - "+ar[3] (Still the last line, which reads

favicon.change(icon, ar[3])

Posted

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

Anyone know where GM stores the scripts as I can't get a text editor to open for some reason :(

Posted

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

Anyone know where GM stores the scripts as I can't get a text editor to open for some reason :(

 

Well in Linux it's in

 

.mozilla/firefox/v6brsoxo.default/gm_scripts

 

so under Windows I'd guess somewhere like

 

My Documents/Application Data/Mozilla/Firefox/Profiles/v6brsoxo.default/gm_scripts

 

note that the v6brsoxo bit will be different for you

Posted

- select "Cache Title" in the list on the left and click the "Edit" button on the bottom left

- this will open a text editor (probably notepad) - scroll down to the end

Anyone know where GM stores the scripts as I can't get a text editor to open for some reason :(

You might, like me, have to associate the file type with a program. I just used Word but you could use Notepad. :(

Posted

Anyone know where GM stores the scripts as I can't get a text editor to open for some reason :(

so under Windows I'd guess somewhere like

 

My Documents/Application Data/Mozilla/Firefox/Profiles/v6brsoxo.default/gm_scripts

Hah! Got it :(

 

I was looking under Program Files and never thought of Application Data so thanks for that :laughing:

Posted (edited)
Anyone know where GM stores the scripts as I can't get a text editor to open for some reason :(

You might, like me, have to associate the file type with a program. I just used Word but you could use Notepad. :(

It already seems to be but FF was unable to launch the program which is a HTML writing program. I think I know why though :laughing:

Edited by dino-irl
Posted (edited)

I have updated the scripts to work again after the changes to the website. There is also a script that moves the "my inventory" list of trackables to the top right, replacing the profile box that only has redundant info anyway.

 

myinventory.png

 

install MyInventory

 

Let me know if there are any problems.

Edited by roolku
Posted

Nice one, roolku. Unfortunately, I can only see one of our archived cache (and never sent to the reviewer) on the "My Inventory Box".

 

It did replace the "Profile box". The rest of our trackable list remained at the bottom of the My Account page...

 

I'm using Firefox 3.01 with the latest Greasemonkey version.

 

Keep it up!

Posted

Nice one, roolku. Unfortunately, I can only see one of our archived cache (and never sent to the reviewer) on the "My Inventory Box".

 

Ah, I didn't realise there could be other "lists" on the page (I don't have such a cache). Can you try the updated version (from the same link) and see if it fixes it?

 

Cheers

Roolku

Posted (edited)

Thanks for the speedy answer. Now the inventory is displayed correctly, replacing the profile box.

 

2pq1aic.jpg

 

(Still, the original inventory list remains also at the bottom. Was that supposed to happen?)

 

Well done and thanks!

Edited by SUp3rFM & Cruella
Posted

Excellent Roolku!

 

Interesting to note that if there's nothing in your inventory (!) it doesn't replace what's there. At first I thought it wasn't working, but then realised I had no TBs, so logged on as my daughter who I know has a TB, and it worked fine.

Posted

(Still, the original inventory list remains also at the bottom. Was that supposed to happen?)

 

Yes, I didn't think it would do any harm there and I wanted to leave the page manipulation at a minimum, to keep the delay down.

Posted

There is also a script that moves the "my inventory" list of trackables to the top right, replacing the profile box that only has redundant info anyway.

Nice! It works beautifully. Thank you so much! :)

 

Works perfect pity the ptb didn't think of it :laughing::):)B):):)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...