Any interest in a personal "useful forum macros" collection tool?

I have no plans to remove it, so that won't be a problem :).

-rob.

1 Like

And here's 0.9.5:

— KMFᴀᴄᴛs - v0.9.5 Macros.kmmacros (486 KB)

The HTML browser works, sort of: You can see records, use the filters, and even edit a selected record ... but those edits aren't yet saved, and the click-to-download feature isn't working yet. It also needs a lot of cleanup work to make the layout nicer.

I also added customized "how to enable remote Javascript" dialogs for each supported browser, if it's not enabled.

-rob.

1 Like

I was chatting with @_jims yesterday (I gotta stop doing that, it's dangerous to my completion percentage! :)). He really wanted Arc support, and I answered that it'd be really tough to collect the data without using remote Javascript.

Then late last night I wondered how slow it'd be to save the HTML page, then just parse the HTML for what I need. It turns out it's about 3x slower than the Javascript. That's the bad news. The good news it that the Javascript only takes 0.16 seconds, so even the "slow" HTML parsing is done (including the file save) in under a half second. So…

image

…version 0.9.6 supports every browser I have. If there are others you'd like to see supported, let me know and I'll add them.

— KMFᴀᴄᴛs - v0.9.6 Macros.kmmacros (632 KB)

This is controlled by both a setting and some logic:

If you set that green box to NO, then remote Javascript will never be used, even for browsers that support it and have it enabled. If left to YES, then remote JS will be used if the browser being used supports it and it's enabled in that browser.

I'm very happy with how well the HTML mode works. It has to write a file to your disk (in /tmp, where it'll be automatically deleted), but given that it does that, and then parses the whole file for a handful of lines of text, I was very happy with it only taking a half-second or so (on a decently quick Mac, but still should be fast enough on older hardware).

I also think this version should run on Keyboard Maestro v10, but I don't have a way to easily test that. If someone does, let me know how it works.

-rob.

2 Likes

Here's the final pre-release version...

— KMFᴀᴄᴛs - v0.9.7 Macros.kmmacros (813 KB)

Here's some of what's new:

• The HTML browser has gotten more attention: You can edit in place and you can delete. Categories are checked for illegal characters when entered.
• There's a new Prompt With List browser that separates the content into Topics, Posts, and Macros at the top level, which makes it a lot easier to use. When you leave a sub-menu, you return to the main menu.

• The Prompt With List browser now defaults to opening items on Return, and you edit by holding down the Command key. Viewing is a lot more frequent than editing, so it makes sense to make it easier to do.
• Fixed a bunch of minor stuff, cleaned up some code, and added (but didn't activate) my macros that check for updates to the macro.

Data collection works incredibly well in all the supported browsers; the speed difference between Javascript and parsing HTML is barely noticeable in actual use.

-rob.

3 Likes