diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 2e2ebc176..c443d26fa 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9364,7 +9364,7 @@ Report = { init: function() { - if (!(/report/.test(location.search) && d.cookie.indexOf('pass_enabled=1') === -1)) { + if (!(/report/.test(location.search) && !d.cookie.contains('pass_enabled=1'))) { return; } return $.asap((function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index a3911f014..2bba076ae 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9345,7 +9345,7 @@ Report = { init: function() { - if (!(/report/.test(location.search) && d.cookie.indexOf('pass_enabled=1') === -1)) { + if (!(/report/.test(location.search) && !d.cookie.contains('pass_enabled=1'))) { return; } return $.asap((function() { diff --git a/src/Miscellaneous/Report.coffee b/src/Miscellaneous/Report.coffee index af505998d..f0782aab5 100644 --- a/src/Miscellaneous/Report.coffee +++ b/src/Miscellaneous/Report.coffee @@ -1,6 +1,6 @@ Report = init: -> - return unless /report/.test(location.search) and d.cookie.indexOf('pass_enabled=1') is -1 + return unless /report/.test(location.search) and not d.cookie.contains 'pass_enabled=1' $.asap (-> $.id 'recaptcha_response_field'), Report.ready ready: -> field = $.id 'recaptcha_response_field'