From 785bc4297cd6407f12da69cc6e8ea751b3c967c3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 17 Feb 2014 15:03:56 -0800 Subject: [PATCH] /f/ embed and navLinks --- LICENSE | 2 +- builds/appchan-x.user.js | 10 +++++++++- builds/crx/script.js | 10 +++++++++- src/Theming/Style.coffee | 6 ++++++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index c82725bf5..8d2653a59 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* appchan x - Version 2.8.11 - 2014-02-16 +* appchan x - Version 2.8.11 - 2014-02-17 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 6725262a4..cf78686c1 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* appchan x - Version 2.8.11 - 2014-02-16 +* appchan x - Version 2.8.11 - 2014-02-17 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -13620,6 +13620,14 @@ while (item = items[i++]) { Style.sheets[item[0]] = $.addStyle(item[1], item[0]); } + if (g.BOARD.ID === 'f') { + $.ready(function() { + var badLink; + $.globalEval('SWFEmbed.init()'); + badLink = $('.navLinks'); + return badLink.parentNode.removeChild(badLink); + }); + } $.addStyle(JSColor.css(), 'jsColor'); $.asap((function() { return d.head; diff --git a/builds/crx/script.js b/builds/crx/script.js index 426c5fc57..5986bd3fe 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.8.11 - 2014-02-16 +* appchan x - Version 2.8.11 - 2014-02-17 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -13621,6 +13621,14 @@ while (item = items[i++]) { Style.sheets[item[0]] = $.addStyle(item[1], item[0]); } + if (g.BOARD.ID === 'f') { + $.ready(function() { + var badLink; + $.globalEval('SWFEmbed.init()'); + badLink = $('.navLinks'); + return badLink.parentNode.removeChild(badLink); + }); + } $.addStyle(JSColor.css(), 'jsColor'); $.asap((function() { return d.head; diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 51ebf9f7c..e64fab73c 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -22,6 +22,12 @@ Style = while item = items[i++] Style.sheets[item[0]] = $.addStyle item[1], item[0] + if g.BOARD.ID is 'f' + $.ready -> + $.globalEval 'SWFEmbed.init()' + badLink = $ '.navLinks' + badLink.parentNode.removeChild(badLink) + # Non-customizable $.addStyle JSColor.css(), 'jsColor'