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-crx/
tmp-userjs/ tmp-userjs/
tmp-userscript/ tmp-userscript/
builds/4chan-X.zip builds/4chan-X-Chrome.zip
builds/4chan-X-Opera.zip
Gruntfile.js Gruntfile.js

View File

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