Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Macro Tooltip Reader
Posted by: siria
Date: November 03, 2019 09:33PM

Sometimes a short quickinfo text appears when the mouse hovers over a page element: a TOOLTIP.
And sometimes those have several interesting lines but close too fast to read everything: AARGH!!
Now this macro helps:
At request (by menu) it copies the tooltip into an alert box, which stays open until you click "OK"

Additionally it shows not only the normal tooltip, but all TITLE + ALT + HREF-link keys
of all hovered elements under the MOUSE, in foreground and background.
This also makes it possible to copy that text by your normal copy shortcut (CTRL+C)



Example: search "window.content" on
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features

MENU: right-click in page, on image, on link etc > Tooltip...

SHORTCUT:
Open parent menu and type "T" (helps if hard to find in superlong parent menus)
The "T" is defined in the menu name, by the "&" before it, change it if you like.
Or define a normal keyboard shortcut, without opening any menu (prepared inside)

KM-version: 1.6 and newer (in KM1.7alpha with broken injectJS the known workaround helps)

INSTALLATION: Copy the attached file "TooltipReader.kmm" into a macros folder (global one, or create it manually in profile)
UNinstall: Remove that file again. Nothing remains, no prefs are used etc.



Edited 1 time(s). Last edit at 11/03/2019 09:37PM by siria.

Attachments: TooltipReader_screen.png (21.9 KB)   TooltipReader.kmm (5.8 KB)  
Options: ReplyQuote
Re: Macro Tooltip Reader
Posted by: siria
Date: November 03, 2019 09:48PM

offtopic:
played a bit with translations inside, but hit a prob again:
anyone know why cyrillic+chinese translations directly inside the kmm don't show up right in the menu? Only as "_____" on xp, although other menu entries, which are created outside, work fine with RU+CN. Is that a macro-bug, or depending on OS etc.?

Options: ReplyQuote
Re: Macro Tooltip Reader
Posted by: anonymous
Date: November 04, 2019 07:42AM

offtopic:
Language support was optional in XP and web server response must contain charset=UTF-8.

Options: ReplyQuote
Re: Macro Tooltip Reader
Posted by: anonymous
Date: November 05, 2019 06:48AM

offtopic:
Answered without reading the question. It is not a macro bug and it is not depending on OS. It is incompatible. The kml files in locales are used to set UTF-8 menu names.

Options: ReplyQuote
Re: Macro Tooltip Reader
Posted by: siria
Date: November 05, 2019 10:54PM

Quote
anonymous
offtopic:
It is not a macro bug and it is not depending on OS. It is incompatible. The kml files in locales are used to set UTF-8 menu names.

Okay, thanks for clearing this up. So it's simply impossible to create RU+CN menu-names directly in the macro, only with a bunch of additional files.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.