From d475581a525b14d268d76299a729eda49f42c902 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 1 Jul 2011 06:37:20 +0200 Subject: [PATCH] Really specific iframe hiding. --- 4chan_x.user.js | 7 ++----- script.coffee | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6faefe016..dc995f455 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1233,7 +1233,8 @@ var iframe; g.callbacks.push(qr.cb.node); iframe = $.el('iframe', { - name: 'iframe' + name: 'iframe', + hidden: true }); $.append(d.body, iframe); $.bind(window, 'message', qr.cb.message); @@ -2884,10 +2885,6 @@ max-width: 100%;\ width: -moz-calc(100%); /* hack so only firefox sees this */\ }\ -\ - iframe[name=iframe] {\ - display: none;\ - }\ \ #qp, #iHover {\ position: fixed;\ diff --git a/script.coffee b/script.coffee index ea4a74873..e530804b5 100644 --- a/script.coffee +++ b/script.coffee @@ -969,6 +969,7 @@ qr = g.callbacks.push qr.cb.node iframe = $.el 'iframe', name: 'iframe' + hidden: true $.append d.body, iframe $.bind window, 'message', qr.cb.message @@ -2276,10 +2277,6 @@ main = width: -moz-calc(100%); /* hack so only firefox sees this */ } - iframe[name=iframe] { - display: none; - } - #qp, #iHover { position: fixed; }