adblock-plus-crx
Advanced tools
Comparing version 2.0.0 to 2.1.0
var fs = require('fs') | ||
var path = require('path') | ||
var filename = 'Adblock-Plus_v1.11.crx' | ||
var version = require('./package.json')['adblock-plus-crx'].version | ||
var filename = 'Adblock-Plus_v' + version + '.crx' | ||
@@ -5,0 +6,0 @@ module.exports = { |
{ | ||
"name": "adblock-plus-crx", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Adblock-Plus crx base64 encoded binary for chromedriver", | ||
@@ -9,2 +9,5 @@ "main": "index.js", | ||
}, | ||
"adblock-plus-crx": { | ||
"version": "1.12.4" | ||
}, | ||
"keywords": [ | ||
@@ -34,3 +37,6 @@ "Adblock-Plus", | ||
}, | ||
"homepage": "https://github.com/guidesmiths/adblock-plus-crx#readme" | ||
"homepage": "https://github.com/guidesmiths/adblock-plus-crx#readme", | ||
"dependencies": { | ||
"mocha": "^3.2.0" | ||
} | ||
} |
@@ -44,2 +44,28 @@ # Adblock-Plus.crx | ||
# How do make your own crx (instructions for OSX) | ||
1. Use a clean directory | ||
``` | ||
mkdir -p ~/Downloads/Adblock-Plus/1.12.4 | ||
cd ~/Downloads/Adblock-Plus/1.12.4 | ||
``` | ||
1. Download the crx file from adblockplus.org | ||
```bash | ||
curl https://downloads.adblockplus.org/adblockpluschrome-1.12.4.crx -o Adblock-Plus_v1.12.4.crx | ||
``` | ||
1. Unzip the crx | ||
``` | ||
unzip Adblock-Plus_v1.12.4.crx | ||
``` | ||
1. Make your modifications | ||
``` | ||
sed -i '' -e 's/defaults.suppress_first_run_page = false;/defaults.suppress_first_run_page = true;/' lib/adblockplus.js | ||
``` | ||
1. Rezip the crx (-u --update doesn't work for me) | ||
``` | ||
zip Adblock-Plus_v1.12.4.crx . -r | ||
``` |
@@ -6,7 +6,7 @@ var assert = require('assert') | ||
it('should expose the crx binary path', function() { | ||
assert(new RegExp('/adblock-plus-crx/bin/Adblock-Plus_v1.11.crx$').test(abp.path), 'crx path was incorrect') | ||
assert(new RegExp('/adblock-plus-crx/bin/Adblock-Plus_v.+\.crx$').test(abp.path), 'crx path was incorrect') | ||
}) | ||
it('should base64 encode the crx binary', function() { | ||
assert(/=$/.test(abp.base64()), 'crx was not base64 encoded') | ||
assert(/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/.test(abp.base64()), 'crx was not base64 encoded') | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
21
71
554259
1
+ Addedmocha@^3.2.0
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrowser-stdout@1.3.0(transitive)
+ Addedcommander@2.9.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@2.6.8(transitive)
+ Addeddiff@3.2.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.1.1(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedgrowl@1.9.2(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedhe@1.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjson3@3.3.2(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basecreate@3.0.3(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash.create@3.1.1(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.1(transitive)
+ Addedmocha@3.5.3(transitive)
+ Addedms@2.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedsupports-color@3.1.2(transitive)
+ Addedwrappy@1.0.2(transitive)