Add catalog, index, and thread classes
This commit is contained in:
parent
aee52eabf2
commit
e0ca096dbe
@ -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:
|
||||
|
||||
@ -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, '-'));
|
||||
|
||||
@ -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, '-'));
|
||||
|
||||
@ -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, '-'));
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user