TiddlyGlobals: extension to disable animations globally

1 view
Skip to first unread message

Saq Imtiaz

unread,
Jan 18, 2007, 4:26:39 AM1/18/07
to TiddlyWikiDev
Hey guys,

I finally got fed up of having to turn off animations on every TW I visit and whipped up a proof of concept extension that disables it. It's a quick 5 minutes job for now, so dont expect too much. It hasnt been tested much yet either, so let me know how it works for you!

Also, please note that it bypasses the XPCNativeWrapper in order to modify the restart function, so it is a potential security risk. Personally I dont think this poses much of a threat at all, but use at your own risk!

http://tw.lewcid.org/tiddlyGlobals.xpi

This will disable animations and disable httpReadOnly globally. If there is any interest, ill add a configuration dialog so you can decide for yourself what settings you want to modify. Perhaps the ability to add variables you want declared as name variable pairs....

Oh, does anyone have any ideas on what the best way to detect from JS whether the current loaded page is a TW? Right now I'm just checking to see if there is a restart function but that is not a reliable check.
Cheers,
Saq


--
TiddlyThemes.com : a gallery of TiddlyWiki themes.
LewcidTW (http://tw.lewcid.org): a repository of extensions for TiddlyWiki

Martin Budden

unread,
Jan 19, 2007, 2:45:06 AM1/19/07
to TiddlyWikiDev
Great stuff. I'm definitely interested.

Martin

Clint Checketts

unread,
Jan 19, 2007, 11:00:42 PM1/19/07
to Tiddly...@googlegroups.com
On 1/18/07, Saq Imtiaz <lew...@gmail.com> wrote:
Oh, does anyone have any ideas on what the best way to detect from JS whether the current loaded page is a TW? Right now I'm just checking to see if there is a restart function but that is not a reliable check.

It probably wouldn't hurt to come right out and say that that the TiddlyWIki was a tiddlywiki file. A good place would be in the version variable.
var version = {program: "TiddlyWiki", major: 2, minor: 1, revision: 3, date: new Date("Nov 3, 2006"), extensions: {}};

Then you could check it with if( version.program=="TiddlyWiki") etc...

Anyone else think that would be a good addition to the core? Maybe version.name would be a better variable name...

-Clint

Saq Imtiaz

unread,
Jan 20, 2007, 12:28:19 AM1/20/07
to Tiddly...@googlegroups.com

I think you've just hit the nail square on the head there Clint. Can see some potential uses there but no harm!
Cheers,
Saq

-Clint






--
TiddlyThemes.com : a gallery of TiddlyWiki themes.
TiddlySnip (http://tiddlysnip.com): a firefox extension that turns TiddlyWiki into a scrapbook!

Ken Girard

unread,
Jan 20, 2007, 5:48:44 PM1/20/07
to TiddlyWikiDev
Also once Google and the other search engines start really trying to
read TWs it gives them a way to know right off the bat that what the
search bot is looking at.

Ken Girard

Saq Imtiaz

unread,
Jan 20, 2007, 6:11:43 PM1/20/07
to Tiddly...@googlegroups.com
What do you say Jeremy?

Martin Budden

unread,
Jan 21, 2007, 7:47:36 AM1/21/07
to TiddlyWikiDev
Saq,

sounds good. Why don't you raise a ticket?

Martin

Reply all
Reply to author
Forward
0 new messages