From b2c3c6522fe24e1202e88b49a7da4db8dfeb1feb Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 29 Dec 2011 01:59:30 +0100 Subject: [PATCH] Use Date.now() --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 85127f929..76c13dda7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2707,7 +2707,7 @@ report: function() { var id, set, url; url = "http://sys.4chan.org/" + g.BOARD + "/imgboard.php?mode=report&no=" + ($.x('preceding-sibling::input', this).name); - id = new Date().getTime(); + id = Date.now(); set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200"; return window.open(url, id, set); } diff --git a/script.coffee b/script.coffee index cdce5bfbf..92e7806be 100644 --- a/script.coffee +++ b/script.coffee @@ -2106,7 +2106,7 @@ reportButton = $.on a, 'click', reportButton.report report: -> url = "http://sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{$.x('preceding-sibling::input', @).name}" - id = new Date().getTime() + id = Date.now() set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200" window.open url, id, set