Ciao Jeremy & others
Very nice on Firefox latest! Useful!
On both Chrome & Edge (Chromium Dev version) it failed.
I think its being blocked on those? Maybe a setting could change that
behaviour?
If I confirm its that (rather than find its just my specific setup) I'll
report back.
Best
TT
On Monday, 11 November 2019 12:46:45 UTC+1, Jeremy Ruston wrote
>
>
> A JavaScript bookmarklet cannot in general read files from the local disk.
> I’ve knocked up a macro that does the next best thing: it can generate
> bookmarklets containing an arbitrary set of tiddlers identified by a filter.
>
> This example generates a bookmarklet labelled “MyTiddlers” containing all
> the tiddlers with the tag “HelloThere”:
>
> <<save-as-bookmarklet "MyTiddlers" "[tag[HelloThere]]">>
>
> Drag the bookmarklet link to the browser address bar to install it, and
> then visit another TiddlyWiki. Clicking the bookmarklet will inject the
> payload tiddlers into the target wiki.
>
> The text of the macro:
>
> \define save-as-bookmarklet-href()
> (function() {
> $tw.wiki.addTiddlers($(json-tiddlers)$);
> })()
> \end
>
> \define save-as-bookmarklet(title,filter)
> <$wikify name="json-tiddlers" output="text" text="""<$text
> text=<<jsontiddlers filter:"$filter$">>/>""">
> <a href={{{
> [<save-as-bookmarklet-href>encodeuricomponent[]addprefix[javascript:]]
> }}}><$text text=<<__title__>>/></a>
> </$wikify>
> \end
>
> Let me know how you get on,
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/93c3e841-3b16-41e3-aae6-d9283344b874%40googlegroups.com.