From bb7b6c1c2b96cc0fa86777c8a65ae8ae203e896b Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 17 Sep 2011 14:35:38 -0700 Subject: [PATCH] confirm, download --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 7dde9710a..2d46abd9e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3008,8 +3008,8 @@ if (origin === 'http://sys.4chan.org') { return qr.message(data); } else { - if (data !== VERSION) { - return alert('new version of 4chan x available on github!'); + if (data !== VERSION && confirm('a newer version of 4chan x is available, would you like to install it now?')) { + return window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js'; } } }, diff --git a/script.coffee b/script.coffee index 3e97e83f3..0e8c459cf 100644 --- a/script.coffee +++ b/script.coffee @@ -2358,8 +2358,8 @@ Main = if origin is 'http://sys.4chan.org' qr.message data else - if data isnt VERSION - alert 'new version of 4chan x available on github!' + if data isnt VERSION and confirm 'a newer version of 4chan x is available, would you like to install it now?' + window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js' css: ' /* dialog styling */