How to integrate another mouse effect in the background of tiddlywiki

Dear friends

I found a very interesting mouse action effect (*.html), how to integrate this effect in tiddlywiki

Try the method from the post

I tried to use ‘application/javascript’ and ‘module-type’ and ‘widget’ did not work, It didn’t cause my tiddlywiki to crash

web.html.json (14.4 KB) (After downloading, rename it to a (*.html) file)


Where did you find that effect? Is there a bit more information?

The uglified code contains a security attack vector with .innerHTML. Search the web for security and .innerHTML and you’ll see what I am talking about.

It could probably be implemented in the secure way using TW methods, but it would be needed to be able to read the code to see what’s going on.

Just my thoughts.

The effect from a technical blog

When I try to replace ‘.innerHTML’ in ‘web.html’ with a null value, the web page no longer has an effect

“Yes, using innerHTML to insert HTML content into a web page does pose some security issues, mainly because innerHTML can execute any HTML and JavaScript code it contains” explains from the Internet

This might be feasible for offline tiddlywiki, but it’s just an immature idea