Add Tooltips to Script Submenu

Script submenus are constrained to a width of 300 pixels, making it difficult to distinguish long URLs sharing a common prefix. How about displaying the full URL if the cursor hovers over an item for a few seconds?



How this was tested: (patch against Ghostery 2.5.3)

--- chrome/content/ghostery-ui.js.orig	2011-04-13 17:00:34.000000000 -0700
+++ chrome/content/ghostery-ui.js
@@ -72,6 +72,7 @@
var script = bugInfo.script;
var submenu = document.createElement("menu");
submenu.setAttribute("label", script );
+ submenu.setAttribute("tooltiptext", script);
submenu.setAttribute("class", "script-url-item");

if (!insertBefore) {
1 person likes
this idea
+1
Reply