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()