On Saturday, April 11, 2020 at 12:08:15 AM UTC-7, Lin Onetwo wrote: > > I found $:/tags/StartupAction/Browser will only execute tiddlywi actions, > but can't execute javascript. > But I have following JS want to execute: > What could I do? > I'm currently using WebcataLog to inject Userscript before wiki loading >
1) added <script> ... </script> around your code 2) tag the tiddler with $:/tags/RawMarkup 3) save-and-reload your document What this does is to add the content of the tagged tiddler to the bottom of the <head> section of the document. This allows your JS code to be invoked as soon as the document is loaded, even before the TWCore wiki is initialized (see https://tiddlywiki.com/#SystemTag%3A%20%24%3A%2Ftags%2FRawMarkup) enjoy, -e -- 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/a63b8cc2-2339-48e6-bad3-c826d337d9e7%40googlegroups.com.

