Opera 15 extension

This commit is contained in:
Jordan Bates 2013-05-28 12:40:42 -07:00
parent 0ca4fff421
commit a30a5927c8
9 changed files with 10686 additions and 2 deletions

3
.gitignore vendored
View File

@ -4,5 +4,6 @@ node_modules/
tmp-crx/
tmp-userjs/
tmp-userscript/
builds/4chan-X.zip
builds/4chan-X-Chrome.zip
builds/4chan-X-Opera.zip
Gruntfile.js

View File

@ -54,6 +54,16 @@ module.exports = (grunt) ->
'tmp-<%= pkg.type %>/script.js'
]
opera:
options: concatOptions
files:
'builds/opera/manifest.json': 'src/General/meta/operamanifest.json'
'builds/opera/script.js': [
'src/General/meta/botproc.js'
'src/General/meta/banner.js'
'tmp-<%= pkg.type %>/script.js'
]
userjs:
options: concatOptions
src: [
@ -91,6 +101,7 @@ module.exports = (grunt) ->
build: [
'concat:meta'
'build-crx'
'build-opera'
'build-userjs'
'build-userscript'
]
@ -124,12 +135,20 @@ module.exports = (grunt) ->
compress:
crx:
options:
archive: 'builds/4chan-X.zip'
archive: 'builds/4chan-X-Chrome.zip'
level: 9
pretty: true
expand: true
cwd: 'builds/crx/'
src: '**'
opera:
options:
archive: 'builds/4chan-X-Opera.zip'
level: 9
pretty: true
expand: true
cwd: 'builds/opera/'
src: '**'
clean:
builds: 'builds'
@ -168,6 +187,14 @@ module.exports = (grunt) ->
'clean:tmpcrx'
]
grunt.registerTask 'build-opera', [
'set-build:crx'
'concat:coffee'
'coffee:script'
'concat:opera'
'clean:tmpcrx'
]
grunt.registerTask 'build-userjs', [
'set-build:userjs'
'concat:coffee'
@ -187,6 +214,7 @@ module.exports = (grunt) ->
grunt.registerTask 'release', [
'default'
'compress:crx'
'compress:opera'
'shell:commit'
'shell:push'
]

BIN
builds/4chan-X.zip Normal file

Binary file not shown.

BIN
builds/opera/icon128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

BIN
builds/opera/icon16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

BIN
builds/opera/icon48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

View File

@ -0,0 +1,21 @@
{
"name": "4chan X",
"version": "1.2.13",
"manifest_version": 2,
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"content_scripts": [{
"js": ["script.js"],
"matches": ["*://api.4chan.org/*","*://boards.4chan.org/*","*://images.4chan.org/*","*://sys.4chan.org/*"],
"all_frames": true,
"run_at": "document_start"
}],
"homepage_url": "http://seaweedchan.github.io/4chan-x/",
"permissions": [
"storage"
]
}

10613
builds/opera/script.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,21 @@
{
"name": "<%= meta.name %>",
"version": "<%= version %>",
"manifest_version": 2,
"description": "<%= description %>",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"content_scripts": [{
"js": ["script.js"],
"matches": <%= JSON.stringify(meta.matches) %>,
"all_frames": true,
"run_at": "document_start"
}],
"homepage_url": "<%= meta.page %>",
"permissions": [
"storage"
]
}