From fd76d85c0736f12387a7d333d5235c8344df3733 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 3 May 2014 06:37:49 -0700 Subject: [PATCH] Invalid string --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Main.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index cefd889f0..4176f78dc 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -13952,7 +13952,7 @@ if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) { return; } - if ((_ref = $('link[href*=mobile]', d.head)) != null) { + if ((_ref = $('link[href*="mobile"]', d.head)) != null) { _ref.disabled = true; } $.addClass(doc, 'fourchan-x', 'seaweedchan', g.VIEW, 'gecko'); diff --git a/builds/crx/script.js b/builds/crx/script.js index 999148142..63aaddebc 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -13970,7 +13970,7 @@ if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) { return; } - if ((_ref = $('link[href*=mobile]', d.head)) != null) { + if ((_ref = $('link[href*="mobile"]', d.head)) != null) { _ref.disabled = true; } $.addClass(doc, 'fourchan-x', 'seaweedchan', g.VIEW, 'blink'); diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 313cfbeb1..3842c671b 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -149,7 +149,7 @@ Main = $.off d, '4chanMainInit', Main.initStyle return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x' # disable the mobile layout - $('link[href*=mobile]', d.head)?.disabled = true + $('link[href*="mobile"]', d.head)?.disabled = true $.addClass doc, 'fourchan-x', 'seaweedchan', g.VIEW, '<% if (type === 'crx') { %>blink<% } else { %>gecko<% } %>' $.addStyle Main.css Main.setClass()