Conflicts: CHANGELOG.md CONTRIBUTING.md LICENSE README.md builds/appchan-x.user.js builds/crx/manifest.json builds/crx/script.js latest.js package.json src/Filtering/PostHiding.coffee src/Filtering/ThreadHiding.coffee src/General/Config.coffee src/General/Header.coffee src/General/Index.coffee src/General/Main.coffee src/General/Navigate.coffee src/General/Settings.coffee src/General/UI.coffee src/General/html/Features/Index-navlinks.html src/Miscellaneous/CustomCSS.coffee src/Posting/QR.captcha.coffee src/Posting/QR.coffee src/Quotelinks/QuoteBacklink.coffee src/Quotelinks/QuoteYou.coffee
17 lines
309 B
CoffeeScript
Executable File
17 lines
309 B
CoffeeScript
Executable File
CustomCSS =
|
|
init: ->
|
|
return unless Conf['Custom CSS']
|
|
@addStyle()
|
|
|
|
addStyle: ->
|
|
@style = $.addStyle Conf['usercss'], 'CustomCSS'
|
|
|
|
rmStyle: ->
|
|
if @style
|
|
$.rm @style
|
|
delete @style
|
|
|
|
update: ->
|
|
unless @style
|
|
return @addStyle()
|
|
@style.textContent = Conf['usercss'] |