From aa5cb8007bdfb893c4a61f5818eeaaf49419ca23 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 5 Feb 2012 17:42:43 +0100 Subject: [PATCH] Don't set body's overflow to '!important'. Fix overflow reset on Chrome. --- 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 7df2221ed..518403e65 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2120,7 +2120,7 @@ }); $.add(overlay, dialog); $.add(d.body, overlay); - d.body.style.setProperty('overflow', 'hidden', 'important'); + d.body.style.setProperty('overflow', 'hidden', null); options.backlink.call(back); options.time.call(time); return options.favicon.call(favicon); diff --git a/script.coffee b/script.coffee index c7da7ffd8..4caf717f9 100644 --- a/script.coffee +++ b/script.coffee @@ -1652,7 +1652,7 @@ options = $.on dialog, 'click', (e) -> e.stopPropagation() $.add overlay, dialog $.add d.body, overlay - d.body.style.setProperty 'overflow', 'hidden', 'important' + d.body.style.setProperty 'overflow', 'hidden', null options.backlink.call back options.time.call time