// ==UserScript== // @name Daptiv Change Window Name and Title // @namespace http://na04.daptiv.com/global // @include http://na04.daptiv.com/global/itembrowser.aspx // ==/UserScript== if (window.name == "IB_Grid") { window.name = "b"+String(Math.random()); // Change the title var items = document.getElementsByClassName("itembrowser-itemlabel"); if (items.length > 0) { var item = items[0].innerHTML.replace(/^\s+|\s+$/, ''); document.title = "Item: " + item + " - " + document.title; } }
I added a bonus to the script in that it will change the title of the window to include the "Name" of the item you clicked on.
This in addition to the speed improvements in FireFox 3 (I can't wait for 3.5 to come out) make Daptiv actually usable. There are other improvements I would like to see, but I will leave fixing those things to another time.
No comments:
Post a Comment