From c73d0e17f2bd8712a57a1f34f260f0b99150ca9a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 5 Feb 2012 14:56:50 +0100 Subject: [PATCH] Add a version class to the body for userstyles to use. Close #164 --- 4chan_x.user.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index b1334e93f..e0b554b08 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3506,6 +3506,7 @@ return; } if (!$.id('navtopr')) return; + $.addClass(d.body, "chanx_" + (VERSION.match(/\.(\d+)/)[1])); $.addClass(d.body, engine); threading.init(); Favicon.init(); diff --git a/script.coffee b/script.coffee index 4ebedb04c..d6902e78c 100644 --- a/script.coffee +++ b/script.coffee @@ -2743,6 +2743,7 @@ Main = return if not $.id 'navtopr' return + $.addClass d.body, "chanx_#{VERSION.match(/\.(\d+)/)[1]}" $.addClass d.body, engine threading.init() Favicon.init()