Filtered backlinks

This commit is contained in:
Jordan Bates 2013-05-03 20:25:43 -07:00
parent e0ca096dbe
commit 4e1a67ec95
7 changed files with 53 additions and 6 deletions

View File

@ -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

View File

@ -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'

View File

@ -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.'

View File

@ -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;