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: seaweedchan:
- Add `Highlight Posts Quoting You` option - Add `Highlight Posts Quoting You` option
- Add 'catalog', 'index', or 'thread' classes to document depending on what's open - 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 ### 1.1.10 - 2013-05-03
seaweedchan: 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: -> init: ->
return if g.VIEW is 'catalog' or !Conf['Filter'] return if g.VIEW is 'catalog' or !Conf['Filter']
unless Conf['Filtered Backlinks']
$.addClass doc, 'hide-backlinks'
for key of Config.filter for key of Config.filter
@filters[key] = [] @filters[key] = []
for filter in Conf[key].split '\n' for filter in Conf[key].split '\n'

View File

@ -117,6 +117,10 @@ Config =
true true
'Add buttons to hide single replies.' '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': [ 'Stubs': [
true true
'Show stubs of hidden threads / replies.' 'Show stubs of hidden threads / replies.'

View File

@ -474,6 +474,9 @@ a.hide-announcement {
.filtered { .filtered {
text-decoration: underline line-through; text-decoration: underline line-through;
} }
:root.hide-backlinks .backlink.filtered {
display: none;
}
.inline { .inline {
border: 1px solid; border: 1px solid;
display: table; display: table;