Start 4chan X rewrite. Fix Chrome's install warning.
This commit is contained in:
parent
d7c37fd5fe
commit
6a63650fa3
5177
4chan_x.user.js
5177
4chan_x.user.js
File diff suppressed because it is too large
Load Diff
54
Cakefile
54
Cakefile
@ -2,27 +2,27 @@
|
|||||||
{exec} = require 'child_process'
|
{exec} = require 'child_process'
|
||||||
fs = require 'fs'
|
fs = require 'fs'
|
||||||
|
|
||||||
VERSION = '2.34.3'
|
VERSION = '3.0.0'
|
||||||
|
CAKEFILE = 'Cakefile'
|
||||||
HEADER = """
|
INFILE = 'script.coffee'
|
||||||
|
OUTFILE = '4chan_x.user.js'
|
||||||
|
CHANGELOG = 'changelog'
|
||||||
|
LATEST = 'latest.js'
|
||||||
|
HEADER = """
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan x
|
// @name 4chan X alpha
|
||||||
// @version #{VERSION}
|
// @version #{VERSION}
|
||||||
// @namespace aeosynth
|
// @description Adds various features.
|
||||||
// @description Adds various features.
|
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
|
||||||
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
|
// @copyright 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
|
||||||
// @copyright 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
|
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
||||||
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
// @match *://boards.4chan.org/*
|
||||||
// @include http://boards.4chan.org/*
|
// @match *://images.4chan.org/*
|
||||||
// @include https://boards.4chan.org/*
|
// @match *://sys.4chan.org/*
|
||||||
// @include http://images.4chan.org/*
|
// @run-at document-start
|
||||||
// @include https://images.4chan.org/*
|
// @updateURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.user.js
|
||||||
// @include http://sys.4chan.org/*
|
// @downloadURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.user.js
|
||||||
// @include https://sys.4chan.org/*
|
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
||||||
// @run-at document-start
|
|
||||||
// @updateURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.user.js
|
|
||||||
// @downloadURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.user.js
|
|
||||||
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/* LICENSE
|
/* LICENSE
|
||||||
@ -86,12 +86,6 @@ HEADER = """
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
CAKEFILE = 'Cakefile'
|
|
||||||
INFILE = 'script.coffee'
|
|
||||||
OUTFILE = '4chan_x.user.js'
|
|
||||||
CHANGELOG = 'changelog'
|
|
||||||
LATEST = 'latest.js'
|
|
||||||
|
|
||||||
option '-v', '--version [version]', 'Upgrade version.'
|
option '-v', '--version [version]', 'Upgrade version.'
|
||||||
|
|
||||||
task 'upgrade', (options) ->
|
task 'upgrade', (options) ->
|
||||||
@ -101,10 +95,10 @@ task 'upgrade', (options) ->
|
|||||||
return
|
return
|
||||||
regexp = RegExp VERSION, 'g'
|
regexp = RegExp VERSION, 'g'
|
||||||
for file in [CAKEFILE, INFILE, OUTFILE, LATEST]
|
for file in [CAKEFILE, INFILE, OUTFILE, LATEST]
|
||||||
data = fs.readFileSync file, 'utf8'
|
data = fs.readFileSync(file, 'utf8').replace regexp, version
|
||||||
fs.writeFileSync file, data.replace regexp, version
|
fs.writeFileSync file, data
|
||||||
data = fs.readFileSync CHANGELOG, 'utf8'
|
# data = fs.readFileSync CHANGELOG, 'utf8'
|
||||||
fs.writeFileSync CHANGELOG, data.replace 'master', "master\n\n#{version}"
|
# fs.writeFileSync CHANGELOG, data.replace 'master', "master\n\n#{version}"
|
||||||
exec "git commit -am 'Release #{version}.' && git tag -a #{version} -m '#{version}' && git tag -af stable -m '#{version}'"
|
exec "git commit -am 'Release #{version}.' && git tag -a #{version} -m '#{version}' && git tag -af stable -m '#{version}'"
|
||||||
|
|
||||||
task 'build', ->
|
task 'build', ->
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
alpha
|
||||||
|
- Mayhem
|
||||||
|
Fix Chrome's install warning that 4chan X would execute on all domains.
|
||||||
|
|
||||||
2.34.3
|
2.34.3
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
4140
script.coffee
4140
script.coffee
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user