Reorder main & features. Less silly trimming.
This commit is contained in:
parent
fca313f582
commit
4a34cd7021
1094
4chan_x.user.js
1094
4chan_x.user.js
File diff suppressed because it is too large
Load Diff
4
grunt.js
4
grunt.js
@ -66,8 +66,8 @@ module.exports = function(grunt) {
|
||||
'<file_template:lib/ui.coffee>',
|
||||
'<file_template:lib/$.coffee>',
|
||||
'<file_template:src/globals.coffee>',
|
||||
'<file_template:src/main.coffee>',
|
||||
'<file_template:src/features.coffee>'
|
||||
'<file_template:src/features.coffee>',
|
||||
'<file_template:src/main.coffee>'
|
||||
],
|
||||
dest: 'tmp/script.coffee'
|
||||
},
|
||||
|
||||
@ -1288,7 +1288,3 @@ ThreadUpdater =
|
||||
$.add @threadRoot, nodes
|
||||
if scroll
|
||||
nodes[0].scrollIntoView()
|
||||
|
||||
|
||||
|
||||
Main.init()
|
||||
|
||||
@ -83,7 +83,7 @@ class Post
|
||||
nodes = d.evaluate './/br|.//text()', bq, null, 7, null
|
||||
for i in [0...nodes.snapshotLength]
|
||||
text.push if data = nodes.snapshotItem(i).data then data else '\n'
|
||||
@info.comment = text.join('').replace /^\n+|\n+$| +(?=\n|$)/g, ''
|
||||
@info.comment = text.join('').trim().replace /\s+$/gm, ''
|
||||
|
||||
quotes = {}
|
||||
for quotelink in $$ '.quotelink', @nodes.comment
|
||||
@ -456,3 +456,5 @@ Main =
|
||||
alert 'Here be settings'
|
||||
|
||||
css: """<%= grunt.file.read('css/style.css') %>"""
|
||||
|
||||
Main.init()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user