Filtered backlinks
This commit is contained in:
parent
e0ca096dbe
commit
4e1a67ec95
@ -1,6 +1,7 @@
|
||||
seaweedchan:
|
||||
- Add `Highlight Posts Quoting You` option
|
||||
- Add 'catalog', 'index', or 'thread' classes to document depending on what's open
|
||||
- Add `Filtered Backlinks` options that when disabled, hides filtered backlinks
|
||||
|
||||
### 1.1.10 - 2013-05-03
|
||||
seaweedchan:
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -3,6 +3,9 @@ Filter =
|
||||
init: ->
|
||||
return if g.VIEW is 'catalog' or !Conf['Filter']
|
||||
|
||||
unless Conf['Filtered Backlinks']
|
||||
$.addClass doc, 'hide-backlinks'
|
||||
|
||||
for key of Config.filter
|
||||
@filters[key] = []
|
||||
for filter in Conf[key].split '\n'
|
||||
|
||||
@ -117,6 +117,10 @@ Config =
|
||||
true
|
||||
'Add buttons to hide single replies.'
|
||||
]
|
||||
'Filtered Backlinks': [
|
||||
true
|
||||
'When enabled, shows backlinks to filtered posts with a line-through decoration. Otherwise, hides the backlinks.'
|
||||
]
|
||||
'Stubs': [
|
||||
true
|
||||
'Show stubs of hidden threads / replies.'
|
||||
|
||||
@ -474,6 +474,9 @@ a.hide-announcement {
|
||||
.filtered {
|
||||
text-decoration: underline line-through;
|
||||
}
|
||||
:root.hide-backlinks .backlink.filtered {
|
||||
display: none;
|
||||
}
|
||||
.inline {
|
||||
border: 1px solid;
|
||||
display: table;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user