4chan-x/src/General/Globals.coffee
2014-08-10 04:20:54 -07:00

15 lines
426 B
CoffeeScript
Executable File

Conf = {}
c = console
d = document
doc = d.documentElement
g =
VERSION: '<%= meta.version %>'
NAMESPACE: '<%= meta.name %>.'
NAME: '<%= meta.name %>'
FAQ: '<%= meta.faq %>'
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
boards: {}
E = (text) ->
(text+'').replace /[&"'<>]/g, (x) ->
{'&': '&amp;', "'": '&#039;', '"': '&quot;', '<': '&lt;', '>': '&gt;'}[x]