Bugfixes, improvements to background selection.
This commit is contained in:
parent
6c73f3e788
commit
57c1170596
@ -249,10 +249,10 @@ Main =
|
|||||||
div.style.position = 'absolute';
|
div.style.position = 'absolute';
|
||||||
div.style.visibility = 'hidden';
|
div.style.visibility = 'hidden';
|
||||||
$.add d.body, div
|
$.add d.body, div
|
||||||
sDiv = window.getComputedStyle(div)
|
bgColor = window.getComputedStyle(div).backgroundColor
|
||||||
bgColor = sDiv.backgroundColor
|
|
||||||
$.rm div
|
$.rm div
|
||||||
unless /^rgb\(/.test(bgColor) and sDiv.backgroundImage is 'none'
|
# Use body background if reply background is transparent
|
||||||
|
unless /^rgb\(/.test(bgColor)
|
||||||
s = window.getComputedStyle(d.body)
|
s = window.getComputedStyle(d.body)
|
||||||
bgColor = "#{s.backgroundColor} #{s.backgroundImage} #{s.backgroundRepeat} #{s.backgroundPosition}"
|
bgColor = "#{s.backgroundColor} #{s.backgroundImage} #{s.backgroundRepeat} #{s.backgroundPosition}"
|
||||||
Main.bgColorStyle.textContent = """
|
Main.bgColorStyle.textContent = """
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user