4chan-x/src/Miscellaneous/CustomCSS.coffee
Nicolas Stepien a2e87f1200 Structure.
God damn War Thunder, download faster!
2013-04-26 17:40:51 +02:00

15 lines
284 B
CoffeeScript

CustomCSS =
init: ->
return if !Conf['Custom CSS']
@addStyle()
addStyle: ->
@style = $.addStyle Conf['usercss']
rmStyle: ->
if @style
$.rm @style
delete @style
update: ->
unless @style
@addStyle()
@style.textContent = Conf['usercss']