Southperry.net
I'm sure there is a way to do this - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Maplers Helping Maplers (https://www.southperry.net/forumdisplay.php?fid=9)
+--- Forum: Technical Help (https://www.southperry.net/forumdisplay.php?fid=84)
+--- Thread: I'm sure there is a way to do this (/showthread.php?tid=16399)



I'm sure there is a way to do this - Russt - 2009-09-16

I want to make a Javascript so that whenever I'm about to load a new page, a confirm() box comes up, and if I choose 'No', I stay on the previous page (or redirect to a page of my choice).
If I choose 'Yes', the new page loads normally.

I'm using Firefox.

Anyone know how I'd go about it?


I'm sure there is a way to do this - Spaz - 2009-09-16

Sounds like just the task for greasemonkey, although I've never used it. You'll have to write the javascript, but Greasemonkey will let it be automatically done on every page.

May I ask why you want to do this? Seems like it'd get really annoying really fast.


I'm sure there is a way to do this - Russt - 2009-09-17

Spaz Wrote:May I ask why you want to do this? Seems like it'd get really annoying really fast.
Procrastination control. Though knowing me, I'd eventually just turn it off when I'm not supposed to.

Hm, I'll look into greasemonkey.