LinkToggle (to select parts of link name) UPDATE! May15
Posted by: siria
Date: April 09, 2011 06:49AM

UPDATE: v2 / 2011-05-15
Macro tested in KM 1.5.4 and 1.6beta2. Probably works also in other versions.

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")

----------------------------

DOWNLOAD:
http://kmeleon.sourceforge.net/forum/file.php?9,file=731,filename=linktoggle.kmm
Just a kmm-file, save it 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 11 time(s). Last edit at 03/01/2014 05:33AM by siria.

Attachments: linktoggle.kmm (7 KB)   LinkToggle_menu1.png (12 KB)  
Re: LinkToggle (to select parts of link name)
Posted by: siria
Date: April 09, 2011 09:15PM

Updated code, see above...

(Edit2: no change, only restored old images)



Edited 4 time(s). Last edit at 03/01/2014 05:28AM by siria.

Attachments: LinkToggle_menu2.png (6.4 KB)   LinkToggle_menu3.png (11.5 KB)  
Re: LinkToggle (to select parts of link name)
Posted by: morfana
Date: April 12, 2011 05:20PM

It works great in win 7.Good job.

Re: LinkToggle (to select parts of link name) UPDATE! May15
Posted by: siria
Date: May 16, 2011 03:42AM

Major update to Version-2, see first post!
Greatly recommended to update, if anyone has it installed.
With the first version I wasn't very happy yet, but this one is now really nice smiling smiley

Thanks morfana! smiling smiley



Edited 1 time(s). Last edit at 05/16/2011 03:48AM by siria.

Attachments: LinkToggle_menu4.png (7.4 KB)  
Re: LinkToggle (to select parts of link name) UPDATE! May15
Posted by: WJ
Date: January 13, 2012 11:16PM

Download link not working, alas.

Re: LinkToggle (to select parts of link name) UPDATE! May15
Posted by: WJ
Date: January 13, 2012 11:47PM

Ah, ne'er mind. The site's back online.

K-Meleon forum is powered by Phorum.