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