Fix background color of dialogs on Tinyboard.
This commit is contained in:
parent
1fd7faa8c7
commit
f8028b83f3
@ -244,9 +244,9 @@ Main =
|
|||||||
$.rm Main.bgColorStyle
|
$.rm Main.bgColorStyle
|
||||||
else
|
else
|
||||||
# Determine proper background color for dialogs if 4chan is using a special stylesheet.
|
# Determine proper background color for dialogs if 4chan is using a special stylesheet.
|
||||||
div = $.el 'div',
|
div = Site.bgColoredEl()
|
||||||
className: 'reply'
|
div.style.position = 'absolute';
|
||||||
div.style.cssText = 'position: absolute; visibility: hidden;'
|
div.style.visibility = 'hidden';
|
||||||
$.add d.body, div
|
$.add d.body, div
|
||||||
bgColor = window.getComputedStyle(div).backgroundColor
|
bgColor = window.getComputedStyle(div).backgroundColor
|
||||||
$.rm div
|
$.rm div
|
||||||
|
|||||||
@ -45,6 +45,9 @@ SW.tinyboard =
|
|||||||
$
|
$
|
||||||
///
|
///
|
||||||
|
|
||||||
|
bgColoredEl: ->
|
||||||
|
$.el 'div', className: 'post reply'
|
||||||
|
|
||||||
parseNodes: (post, nodes) ->
|
parseNodes: (post, nodes) ->
|
||||||
# Add vichan's span.poster_id around the ID if not already present.
|
# Add vichan's span.poster_id around the ID if not already present.
|
||||||
return if nodes.uniqueID
|
return if nodes.uniqueID
|
||||||
|
|||||||
@ -52,6 +52,9 @@ SW.yotsuba =
|
|||||||
$
|
$
|
||||||
///
|
///
|
||||||
|
|
||||||
|
bgColoredEl: ->
|
||||||
|
$.el 'div', className: 'reply'
|
||||||
|
|
||||||
isThisPageLegit: ->
|
isThisPageLegit: ->
|
||||||
# not 404 error page or similar.
|
# not 404 error page or similar.
|
||||||
location.hostname is 'boards.4chan.org' and
|
location.hostname is 'boards.4chan.org' and
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user