Fix Labels, IDColor, IDHighlight
This commit is contained in:
parent
790a88dfd9
commit
4ef2b61c25
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -103,11 +103,13 @@ PostHiding =
|
|||||||
@cb = -> PostHiding.menu.show post
|
@cb = -> PostHiding.menu.show post
|
||||||
$.on @el, 'click', @cb
|
$.on @el, 'click', @cb
|
||||||
true
|
true
|
||||||
|
|
||||||
thisPost =
|
thisPost =
|
||||||
el: UI.checkbox 'thisPost', 'This post', false
|
el: UI.checkbox 'thisPost', 'This post', false
|
||||||
open: (post) ->
|
open: (post) ->
|
||||||
@el.firstChild.checked = post.isHidden
|
@el.firstChild.checked = post.isHidden
|
||||||
true
|
true
|
||||||
|
|
||||||
replies =
|
replies =
|
||||||
el: UI.checkbox 'replies', 'Show replies', false
|
el: UI.checkbox 'replies', 'Show replies', false
|
||||||
open: (post) ->
|
open: (post) ->
|
||||||
|
|||||||
@ -287,6 +287,7 @@ Main =
|
|||||||
['Announcement Hiding', PSAHiding]
|
['Announcement Hiding', PSAHiding]
|
||||||
['Fourchan thingies', Fourchan]
|
['Fourchan thingies', Fourchan]
|
||||||
['Color User IDs', IDColor]
|
['Color User IDs', IDColor]
|
||||||
|
['Highlight by User ID', IDHighlight]
|
||||||
['Custom CSS', CustomCSS]
|
['Custom CSS', CustomCSS]
|
||||||
['Linkify', Linkify]
|
['Linkify', Linkify]
|
||||||
['Reveal Spoilers', RemoveSpoilers]
|
['Reveal Spoilers', RemoveSpoilers]
|
||||||
@ -303,6 +304,7 @@ Main =
|
|||||||
['Delete Link', DeleteLink]
|
['Delete Link', DeleteLink]
|
||||||
['Filter (Menu)', Filter.menu]
|
['Filter (Menu)', Filter.menu]
|
||||||
['Download Link', DownloadLink]
|
['Download Link', DownloadLink]
|
||||||
|
['Labels list', Labels]
|
||||||
['Archive Link', ArchiveLink]
|
['Archive Link', ArchiveLink]
|
||||||
['Quote Inlining', QuoteInline]
|
['Quote Inlining', QuoteInline]
|
||||||
['Quote Previewing', QuotePreview]
|
['Quote Previewing', QuotePreview]
|
||||||
|
|||||||
@ -158,6 +158,7 @@ UI = do ->
|
|||||||
onFocus: (e) =>
|
onFocus: (e) =>
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
@focus e.target
|
@focus e.target
|
||||||
|
|
||||||
focus: (entry) ->
|
focus: (entry) ->
|
||||||
while focused = $.x 'parent::*/child::*[contains(@class,"focused")]', entry
|
while focused = $.x 'parent::*/child::*[contains(@class,"focused")]', entry
|
||||||
$.rmClass focused, 'focused'
|
$.rmClass focused, 'focused'
|
||||||
|
|||||||
@ -1247,11 +1247,14 @@ nav a,
|
|||||||
.inline .menu-button {
|
.inline .menu-button {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.color-user-ids .posteruid .hand {
|
.posteruid .painted {
|
||||||
padding: .1em .3em;
|
padding: .1em .3em;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
.hand {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
div.post div.postInfo {
|
div.post div.postInfo {
|
||||||
padding: 1px 3px;
|
padding: 1px 3px;
|
||||||
display: block !important;
|
display: block !important;
|
||||||
|
|||||||
@ -207,7 +207,7 @@ class Post
|
|||||||
PostHiding.makeButton false
|
PostHiding.makeButton false
|
||||||
$.tn " #{@getNameBlock()}"
|
$.tn " #{@getNameBlock()}"
|
||||||
]
|
]
|
||||||
$.add @nodes.stub, Menu.makeButton() if Conf['Menu']
|
$.add @nodes.stub, Menu.makeButton @ if Conf['Menu']
|
||||||
$.prepend @nodes.root, @nodes.stub
|
$.prepend @nodes.root, @nodes.stub
|
||||||
show: (showRecursively=Conf['Recursive Hiding']) ->
|
show: (showRecursively=Conf['Recursive Hiding']) ->
|
||||||
return if !@isHidden
|
return if !@isHidden
|
||||||
|
|||||||
@ -9,8 +9,7 @@ Labels =
|
|||||||
{labels} = post.origin or post
|
{labels} = post.origin or post
|
||||||
return false unless labels.length
|
return false unless labels.length
|
||||||
@subEntries.length = 0
|
@subEntries.length = 0
|
||||||
for label in labels
|
@subEntries = (el: $.el 'div', textContent: label for label in labels)
|
||||||
addSubEntry el: $.el 'div', textContent: label
|
|
||||||
true
|
true
|
||||||
subEntries: []
|
subEntries: []
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@ IDColor =
|
|||||||
style.color = rgb[3]
|
style.color = rgb[3]
|
||||||
style.backgroundColor = "rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]})"
|
style.backgroundColor = "rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]})"
|
||||||
$.addClass span, 'painted'
|
$.addClass span, 'painted'
|
||||||
span.title = 'Highlight posts by this ID'
|
|
||||||
|
|
||||||
compute: (uid) ->
|
compute: (uid) ->
|
||||||
# Convert chars to integers, bitshift and math to create a larger integer
|
# Convert chars to integers, bitshift and math to create a larger integer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user