diff --git a/4chan_x.user.js b/4chan_x.user.js index c766fdaa1..3257ba168 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -446,18 +446,16 @@ } return true; } - if (month === 10) { - if (sunday < 1) { + if (sunday < 1) { + return true; + } + if (sunday < 8 && date.getDay() === 0) { + if (date.getHour() < 1) { return true; } - if (sunday < 8 && date.getDay() === 0) { - if (date.getHour() < 1) { - return true; - } - return false; - } return false; } + return false; } }); $.cache.requests = {}; diff --git a/script.coffee b/script.coffee index 6fba65792..9619b2fac 100644 --- a/script.coffee +++ b/script.coffee @@ -311,20 +311,20 @@ $.extend $, #after second sunday return true - if month is 10 - # before first sunday - if sunday < 1 + #month is 10 + # before first sunday + if sunday < 1 + return true + + # during first sunday + if sunday < 8 and date.getDay() is 0 + if date.getHour() < 1 return true - - # during first sunday - if sunday < 8 and date.getDay() is 0 - if date.getHour() < 1 - return true - return false - - #after first sunday return false + #after first sunday + return false + $.cache.requests = {} if GM_deleteValue?