Add task for setting captcha complaints redirect.
This commit is contained in:
parent
4099936088
commit
3995ab1b01
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,6 @@ tmp-crx/
|
||||
tmp-userscript/
|
||||
testbuilds/
|
||||
test.html
|
||||
captchas*.html
|
||||
captchas.html
|
||||
install.json
|
||||
Gruntfile.js
|
||||
|
||||
@ -469,9 +469,9 @@ module.exports = (grunt) ->
|
||||
'shell:poststore'
|
||||
]
|
||||
|
||||
grunt.registerTask 'captchas', [
|
||||
'shell:captchas'
|
||||
]
|
||||
grunt.registerTask 'captchas', 'Set captcha complaints redirect.', (url='https://www.4chan.org/feedback') ->
|
||||
grunt.file.write 'captchas.html', grunt.template.process(grunt.file.read('redirect.html'), data: {url})
|
||||
grunt.task.run 'shell:captchas'
|
||||
|
||||
grunt.registerTask 'setversion', 'Set the version number', (version) ->
|
||||
pkg = grunt.file.readJSON 'package.json'
|
||||
|
||||
10
redirect.html
Normal file
10
redirect.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html><head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=<%= url %>">
|
||||
<title>Redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
Redirecting to <a href="<%= url %>"><%= url %></a>...
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user