Add catalog, index, and thread classes

This commit is contained in:
Jordan Bates 2013-05-03 18:22:05 -07:00
parent aee52eabf2
commit e0ca096dbe
5 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
seaweedchan:
- Add `Highlight Posts Quoting You` option
- Add 'catalog', 'index', or 'thread' classes to document depending on what's open
### 1.1.10 - 2013-05-03
seaweedchan:

View File

@ -9840,6 +9840,7 @@
}
$.addClass(doc, 'presto');
$.addClass(doc, 'fourchan-x');
$.addClass(doc, g.VIEW);
$.addStyle(Main.css);
if (g.VIEW === 'catalog') {
$.addClass(doc, $.id('base-css').href.match(/catalog_(\w+)/)[1].replace('_new', '').replace(/_+/g, '-'));

View File

@ -9863,6 +9863,7 @@
}
$.addClass(doc, 'gecko');
$.addClass(doc, 'fourchan-x');
$.addClass(doc, g.VIEW);
$.addStyle(Main.css);
if (g.VIEW === 'catalog') {
$.addClass(doc, $.id('base-css').href.match(/catalog_(\w+)/)[1].replace('_new', '').replace(/_+/g, '-'));

View File

@ -9844,6 +9844,7 @@
}
$.addClass(doc, 'webkit');
$.addClass(doc, 'fourchan-x');
$.addClass(doc, g.VIEW);
$.addStyle(Main.css);
if (g.VIEW === 'catalog') {
$.addClass(doc, $.id('base-css').href.match(/catalog_(\w+)/)[1].replace('_new', '').replace(/_+/g, '-'));

View File

@ -132,6 +132,7 @@ Main =
$('link[href*=mobile]', d.head)?.disabled = true
$.addClass doc, '<% if (type === 'crx') { %>webkit<% } else if (type === 'userjs') { %>presto<% } else { %>gecko<% } %>'
$.addClass doc, 'fourchan-x'
$.addClass doc, g.VIEW
$.addStyle Main.css
if g.VIEW is 'catalog'