Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
for beta testers: macro "testJS" (injectJS+openJS) /UPDATE v5
Posted by: siria
Date: October 20, 2014 06:08PM

A little macro to test how INJECTJS works in new K-Meleon versions.
With 5 different workaround methods, which may or may not work.
Just for testing!
The test code opens an input field and then renames the tab (page title).

Menu: Edit > TEST Javascript (on top) > 6 ways to Rename Title

------------
Mainly this is just a demo to show the prob with KM74gre31:
Setting-4 does not work for me with ANY macro commands - or does it for you??
------------
Also a demo for the line-order-bug in macros containing javascript since KM1.6:
Setting-1 + command-2 worked last in KM1.5.4.
------------

4 testing scenarios x 6 commands = 24 test possibilites

Setting-1: BLOCK JS / load a page / Click Edit> TestJS (1-5)
Setting-2: ALLOW JS / load a page / Click Edit> TestJS (1-5)
Setting-3: ALLOW JS / load a page / BLOCK JS by button or menu / Click Edit> TestJS (1-5)
Setting-4: BLOCK JS / load a page / ALLOW JS by button or menu / Click Edit> TestJS (1-5)

commands:
RENAME TITLE (1): injectJS
workaround-2: macro toggles JS + open(JS+function)
workaround-3: macro toggles JS + open(JS+function) + ALERT
workaround-4: macro toggles JS + injectJS + ALERT
workaround-5: macro open(JS+function), NO toggles
workaround-6: macro injectJS+function, NO toggles

More Tests:
- If InjectJS can return a variable
- Right-click on a link to test line order with 1) ID_SAVE_LINK_AS 2) alert

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

Install from attachment below:
Version-5 / 2014-10-27



Edited 5 time(s). Last edit at 10/27/2014 09:05PM by siria.

Attachments: testJS_v5.7z (1.9 KB)  
Options: ReplyQuote
Re: for beta testers: macro "testJS" (injectJS+openJS) /UPDATE v5
Posted by: siria
Date: October 27, 2014 09:10PM

Update to version-5, see above.

Added 2 more tests:
- If InjectJS can return a variable
- Right-click on a link to test line order with 1) ID_SAVE_LINK_AS 2) alert

The second does not even contain any javascript in the macro kmm.
I didn't hold much hope that the alert box would wait until the link is saved, but actually the second popup even opens as first! sad smiley
(Only tested in KM1.6+7, the others can currently only be worse)

Options: ReplyQuote
Re: for beta testers: macro "testJS" (injectJS+openJS) /UPDATE v5
Posted by: siria
Date: November 05, 2014 12:33AM

(Another test macro, for rebarmenu checkmarks bug, or to just test any macro-created button and see if transparency works). Cannot upload it in bugs forum:

http://kmeleonbrowser.org/forum/read.php?3,130665

Attachments: rebarmenu_test.kmm (2.2 KB)  
Options: ReplyQuote


K-Meleon forum is powered by Phorum.