Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=disrupted] slayer, it's too much trouble in macro.. i tried the same thing but the variables are too much for the macro to parse correctly.. it might not contain a www at all for the target link like in this e.g http ://www.example.com/?url=http ://mozilla.org the target link is directed with http and not with a www, autoit works better because it can search from the right and doesn't need to look for 2 matches.. when it's searching from the right..the first instance is what it needs and when it doesn't find the target instance of www and finds the referer www (searching from the right) it can tell that this match of www doesn't belong to the target link but to the referer because it's at the neginning of the string..or in that case it's at the end of the string(searching from the right) so it ignores it and searches for the first instance of http(searching from the right) which any target link will naturally have if it doesn't have a www prefix. another problem that might face the macro is when the target link is contained inside the string and not at the end like in that example: [code] htt p://www.google.co.uk/url?q=registry%2Bcleaner&url=/aclk%3Fsa%3Dl%26ai%3DCm4FtsOK4SuW9LYKrsAbqquHUCJynl4MBgtrC4AvAt_UECAAQASgDULbHwYH-_____wFguwagAZzQt_8DyAEBqgQcT9ACNH1fa5qKu_vdB0Gu-OfYXXSteH5KBP1FEQ%26sig%3DAGiWqtx15Z2mKB8ZSCMjv4iNCx7MgVvhXw%26q%3D[b][color=red]htt p://www.pctools.com/registry-mechanic/download[/color][/b]%253Fref%253Dgoogle&rct=j&ei=sOK4SqOzKsqHsAbip93ABQ&usg=AFQjCNHdjgm1LNmK5zxeHGGWL6fbshpL1w [/code] the only way i think it can be extracted with the macro is to know the exact position where the target string starts and the exact character where it ends.. i'm not sure if there is any other way even the js based frefox extension had problems with such strings and most of them weren't extracted correctly, again the autoit string function is utilised easily to be intelligent in detecting unconventional characters(always where the target link ends) and precisely extract the proper link without any additions.. this is very important because any string containing even one wrong character at the end will not open the desired website and end in a 404 error page. i think even if you were able to find a way with the macro, it will probably conflict with other strings..meaning if you have to get the target link correctly from one condition, another condition will suffer and its target link will not be proper.. which is the same problem with the js-based addon..i think you will need to make a compromise but with autoit all conditions are calculated in a much better way dodobird, since this extension passes the link externally to kmeleon like an external application, you might want to change some preferences to make the link openn in a new tab and not override the current page: open kmeleon preferences and under browsing>window diversion> set urls passed from external applications to open in a new tab [img]http://kmeleon.holaservers.com/disrupted/diversionkm.jpg[/img][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development