UPDATE: v2 / 2011-05-15
Macro works in KM 1.5.4 or newer.
UPDATE: v3 / 2015-03-22
Additional command for KM75 or newer:
Copy Link Name
Additional command for KM1.6:
Copy Link Name > URL bar
(In other KM-versions same functions as version2)
UPDATE: v4 / 2015-03-29
Should now also work with bookmarklet- and javascript-links.
=====
This macro allows to select parts of a link name, after toggling off the "link function".
The link is usually toggled on again automatically shortly after.
Right-click on a link to temporarily disable it with "LINK TOGGLE":
("Open Here" and "Copy" have nothing to do with toggling, just a little bonus, you can hide those lines if you prefer. There are descriptions inside the macro file "LinkToggle.kmm", just open it with a text editor, and add or remove a comment sign # at the chosen "setmenu" lines.)
The AUTOMATIC RESTORE is done if you toggle a link, select some text, right-click and use one of those 4 commands:
"Restore + Copy" copies selected text into the clipboard.
(For keyboard fans: CTRL+C also restores automatically, but only 1x, afterwards it's without "restore" again.)
"Restore + Search" sends the selected text to your current search engine or dictionary website.
(Same as hitting the search button/globe after selecting some text. Or use the "Web Search" in the same menu to choose another search engine etc. Plus automatic link restore.)
"Restore + Go To" opens selected text as URL.
(Same as hitting the "Go" button after selecting some text, or same as clicking on
"Open As URL" in the same menu. Plus automatic link restore.)
After use, the menu block above is deleted again:
The link RESTORE usually happens automatically, otherwise use this, near "Reload" menu:
(That line gets created only if LinkToggle was used in this session, and stays visible until browser is closed)
Note: on FRAMES pages restoring works in active frame only.
But of course reloading a page always restores everything too.
----------------------------
Alternative Toggle:
On a few websites "LinkToggle" doesn't work. In such cases right-click on the link and use
"Text Cursor (select in links)" Now if you click inside a page, that produces a visible cursor which you can move with the arrow keys even inside a link, then click Shift+Arrow to select some text.
Catch is: This special pref also changes the Home + End keys, and PageUp+Down keys, that's why this macro is coded to RESET it automatically as soon as possible: at first use of Ctrl+C or at next page load.
If you do NOT want to reset it automatically, use the permanent setting in the "View" menu.
(Code: uses a hidden Mozilla pref:
"browse with caret")
----------------------------
INSTALLATION:
Save the attached kmm-file into one of your K-Meleon macros folders
Close browser (and loader if used) and restart K-Meleon.
"Un-Installation": Remove "LinkToggle.kmm" from macros folder.
Or hit
F2>Macro Extension to temporarily disable single macros.
Edited 13 time(s). Last edit at 03/29/2015 07:50PM by siria.