TW5: Is it possible for TW to disable to browser refresh button?

54 views
Skip to first unread message

Chuck R.

unread,
May 25, 2020, 6:58:29 AM5/25/20
to tiddl...@googlegroups.com
I use TW 5.1.19 on Google Chrome, whatever the latest version is. Chrome self-updates. It looks like Chrome v81.

With TW5 we have to use the TW refresh button, not the browser refresh button. After doing 30 minutes of edits I was tired (and sick and on tons of meds, explanation here https://groups.google.com/d/msg/tiddlywiki/gQ2pRxOZy-U/6XbOTma4AAAJ) and accidentally hit the browser refresh and lost all my work. So in TW5 can someone make a change to disable or make the browser refresh button disappear? I use Chrome for TW5 files.

The idea is when a TW file is viewed by Chrome TW would disable or hide the browser refresh button. My TW is on tiddlyspot.com. But when Chrome views other websites the refresh button would still be available.

This would be really helpful to avoid accidents like I had. I described my 7 week cough in Jeremy's thread about his health.

Thanks!

p.s. sorry I could not get the tags "tw5" or "tiddlywiki5" to work for this thread.

I should mention this should disable all forms of refresh including the refresh button, F5, and control-R.

My preference is for TW to do this, not a plugin or Scriptmonkey or third-party tool. But if we have to use Scriptmonkey or something like it, so be it. It's worth saving me time with oopsies.

Chuck R.

unread,
May 25, 2020, 7:10:00 AM5/25/20
to tiddl...@googlegroups.com
I found how to disable refresh via Javascript here. I'm not sure if TW5 uses JS. https://stackoverflow.com/questions/2482059/disable-f5-and-browser-refresh-using-javascript#7997282

But I'm not familiar with JS nor how it would affect it in this case. I would often open TW5 in one tab of Chrome, then open another website in another tab of Chrome. The second tab should have the browser refresh available via all methods: The refresh button, F5 and Control-R and whatever other method Chrome might use. I don't see a Refresh option on the Chrome 3 dot menu.

Birthe C

unread,
May 25, 2020, 7:13:30 AM5/25/20
to TiddlyWiki
Chuck,

Even better . you might not have lost everything you wrote. You wrote, that your tiddlywiki is on tiddlyspot. Did you check if you have any relevant backup there.

That depends of course if you did save at all at any point at that time.


Birthe

Birthe C

unread,
May 25, 2020, 7:20:55 AM5/25/20
to TiddlyWiki
I am not sure disabling refresh would be a good idea. Importing plugins containing javascript still needs you to refresh your wiki in the browser. Also I have found that the few times the browser goes down on me, I need to refresh the tab containing my tiddlywiki not to miss the latest notes I wrote before it happened.
Most often when my tiddlywiki is on tiddlyspot, I have the setting to autosave my wiki. I do so because tiddlyspot is really good with backups.

Birthe

Chuck R.

unread,
May 25, 2020, 7:23:41 AM5/25/20
to tiddl...@googlegroups.com
Yes I checked some backups on tiddlyspot. This happened some months ago so I think I just wrote it off as a loss. I'm trying to prevent further losses in the future by addressing the root problem. But I don't know enough about TW to do it myself.

TonyM

unread,
May 25, 2020, 7:49:07 AM5/25/20
to TiddlyWiki
Chuck

Did not the unsaved changes open a dialogue warning you are about to navigate away with unsaved changes.

The reason I don't think you will get what you ask for is browsers do not want to allow websites altering the way they operate. This is usually called malware.

I suggest look closer at tiddlywiki and why it did not stop you loosing changes.

Did you alter the save mechanisium, what save method was in use I assume the tiddlyspot one?

regards
Tony

Chuck R.

unread,
May 25, 2020, 8:09:27 AM5/25/20
to tiddl...@googlegroups.com
Tony, I don't think the browser asked me that I had unsaved changes. But this was about 3 months ago.

I did not alter any save mechanism. I think I had it autosave every time I closed the tiddler edit box when I was done editing a tiddler.

TonyM

unread,
May 25, 2020, 8:54:50 AM5/25/20
to TiddlyWiki
Chuck,

Yes, so arguably it saved, and there should be a backup depending on your save mechanism.

Now chrome and Firefox can use Timimi, I would explore than for local single file wikis. 

Regards
Tony


On Monday, May 25, 2020 at 10:09:27 PM UTC+10, Chuck R. wrote:
Tony, I don't think the browser asked me that I had unsaved changes. But this was about 3 months ago.

I did not alter any save mechanism. I think I had it autosave every time I closed the edit box when I was done editing.
Reply all
Reply to author
Forward
0 new messages