Purge some more i2p stuff from the prototype
This commit is contained in:
322
Makefile
322
Makefile
@ -1,92 +1,312 @@
|
||||
PREFIX:=/usr
|
||||
|
||||
PREFIX?=/usr
|
||||
|
||||
default: zip
|
||||
|
||||
install: uninstall
|
||||
mkdir -p $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
cp -r ./chromium/ $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./icons/ $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./_locales/ $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./options/ $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.js $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.html $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.css $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.md $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.xpi $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./manifest.json $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./LICENSE $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io/
|
||||
ln -s $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io \
|
||||
PWD=`pwd`
|
||||
|
||||
install: uninstall version
|
||||
mkdir -p $(PREFIX)/share/webext/onionbct@eyedeekay.github.io \
|
||||
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
@echo $(PWD)
|
||||
cp -v ./* $(PREFIX)/share/webext/onionbct@eyedeekay.github.io/; true
|
||||
cp -vr ./i2pcontrol $(PREFIX)/share/webext/onionbct@eyedeekay.github.io/i2pcontrol
|
||||
cp -vr ./_locales $(PREFIX)/share/webext/onionbct@eyedeekay.github.io/_locales
|
||||
cp -vr ./icons $(PREFIX)/share/webext/onionbct@eyedeekay.github.io/icons
|
||||
cp -vr ./options $(PREFIX)/share/webext/onionbct@eyedeekay.github.io/options
|
||||
make link
|
||||
|
||||
link:
|
||||
ln -sf $(PREFIX)/share/webext/onionbct@eyedeekay.github.io \
|
||||
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/onionbct@eyedeekay.github.io
|
||||
|
||||
uninstall:
|
||||
rm -rf $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$(PREFIX)/share/webext/onionsetproxy.js@eyedeekay.github.io \
|
||||
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
rm -rf $(PREFIX)/share/webext/onionbct@eyedeekay.github.io \
|
||||
$(PREFIX)/share/webext/onionbct.js@eyedeekay.github.io \
|
||||
$(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/onionbct@eyedeekay.github.io
|
||||
|
||||
|
||||
ls:
|
||||
ls -lah $(PREFIX)/share/webext/onioncbt@eyedeekay.github.io; \
|
||||
ls -lah $(PREFIX)/share/webext/onionbct@eyedeekay.github.io; \
|
||||
ls -lah $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
|
||||
clean:
|
||||
rm -f ../onionsetproxy.js.zip ../onion_proxy*.xpi
|
||||
clean: rc clean-artifacts
|
||||
rm -fr ../onionbct.js.zip ../i2p_proxy*.xpi ../i2p*.xpi *.torrent #../onionbct.js_*.*
|
||||
|
||||
## EVEN RELEASES are AMO RELEASES
|
||||
## ODD RELEASES are SELFHOSTED RELEASES
|
||||
|
||||
MOZ_VERSION=0.38
|
||||
VERSION=0.39
|
||||
VERSION=$(MOZ_VERSION)
|
||||
#VERSION=1.27
|
||||
MOZ_VERSION=0.74
|
||||
VERSION=0.73
|
||||
|
||||
xpi:
|
||||
wget -O ../onioncbt@eyedeekay.github.io.xpi \
|
||||
https://addons.mozilla.org/firefox/downloads/file/3419789/onionsetproxyjs-$(MOZ_VERSION)-an+fx.xpi
|
||||
cp ../onioncbt@eyedeekay.github.io.xpi ./onioncbt@eyedeekay.github.io.xpi
|
||||
## INCREMENT THIS EVERY TIME YOU DO A RELEASE
|
||||
LAST_VERSION=0.73
|
||||
|
||||
YELLOW=F7E59A
|
||||
ORANGE=FFC56D
|
||||
GREY=D9D9D6
|
||||
BLUE=A4C8E1
|
||||
PURPLE=A48fE1
|
||||
|
||||
colors:
|
||||
@echo " yellow $(YELLOW) \n orange $(ORANGE) \n grey $(GREY) \n blue $(BLUE) \n purple $(PURPLE)"
|
||||
|
||||
amo-readme:
|
||||
markdown README.md | \
|
||||
sed 's|<p>||g' | \
|
||||
sed 's|</p>||g' | \
|
||||
sed 's|<h1>|<strong>|g' | \
|
||||
sed 's|</h1>|</strong>|g' | \
|
||||
sed 's|<h2>|<strong>|g' | \
|
||||
sed 's|</h2>|</strong>|g' | \
|
||||
sed 's|<h3>|<strong>|g' | \
|
||||
sed 's|</h3>|</strong>|g' | \
|
||||
grep -v '<img' > amo-index.html
|
||||
|
||||
MAGNET=`torrent2magnet onionbct@eyedeekay.github.io.xpi.torrent`
|
||||
|
||||
index:
|
||||
@echo "<!DOCTYPE html>" > index.html
|
||||
@echo "<html>" >> index.html
|
||||
@echo "<head>" >> index.html
|
||||
@echo " <title>Onion in Container Browsing Mode</title>" >> index.html
|
||||
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"home.css\" />" >> index.html
|
||||
@echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"sidebar.css\" />" >> index.html
|
||||
@echo "</head>" >> index.html
|
||||
@echo "<body>" >> index.html
|
||||
sed "s|magnetsub|[Magnet Link]($(MAGNET))|g" README.md | sed 's|README.md|index.html|g' | markdown >> index.html
|
||||
@echo "</body>" >> index.html
|
||||
@echo "</html>" >> index.html
|
||||
|
||||
xpi: getxpi
|
||||
|
||||
version:
|
||||
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(VERSION)\",|g' manifest.json
|
||||
#sed -i 's|$(shell grep "\"version_name\": " manifest.json)| \"version_name\": \"$(VERSION)\",|g' manifest.json
|
||||
#sed -si 's|$(shell grep $(LAST_VERSION) _locales/en/messages.json)| "message": "$(VERSION)",|g' _locales/en/messages.json; true
|
||||
#sed -si 's|$(shell grep $(MOZ_VERSION) _locales/en/messages.json)| "message": "$(VERSION)",|g' _locales/en/messages.json; true
|
||||
|
||||
moz-version:
|
||||
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(MOZ_VERSION)\",|g' manifest.json
|
||||
#sed -i 's|$(shell grep "\"version_name\": " manifest.json)| \"version_name\": \"$(MOZ_VERSION)\",|g' manifest.json
|
||||
#sed -si 's|$(shell grep $(LAST_VERSION) _locales/en/messages.json)| "message": "$(MOZ_VERSION)",|g' _locales/en/messages.json; true
|
||||
#sed -si 's|$(shell grep $(VERSION) _locales/en/messages.json)| "message": "$(MOZ_VERSION)",|g' _locales/en/messages.json; true
|
||||
|
||||
zip: version
|
||||
zip --exclude="./onioncbt@eyedeekay.github.io.xpi" \
|
||||
--exclude="./onionsetproxy.js@eyedeekay.github.io.xpi" \
|
||||
--exclude="./onionsetproxy.js.png" \
|
||||
--exclude="./onionsetproxy.js.gif" \
|
||||
--exclude="./.git" -r -FS ../onionsetproxy.js.zip *
|
||||
zip --exclude="./onionbct@eyedeekay.github.io.xpi" \
|
||||
--exclude="./onionbct.js@eyedeekay.github.io.xpi" \
|
||||
--exclude="./onionbct.js.png" \
|
||||
--exclude="./onionbct.js.gif" \
|
||||
--exclude="./package.json" \
|
||||
--exclude="./package-lock.json" \
|
||||
--exclude="./.node_modules" \
|
||||
--exclude="./node_modules" \
|
||||
--exclude="./.git" \
|
||||
--exclude="*/*.xpi" \
|
||||
--exclude="web-ext-artifacts" \
|
||||
--exclude="./*.pdf" -r -FS ../onionbct.js.zip *
|
||||
|
||||
release:
|
||||
cat desc | gothub release -p -u eyedeekay -r onionsetproxy.js -t $(VERSION) -n $(VERSION) -d -
|
||||
rc:
|
||||
@grep "$(VERSION)" debian/changelog
|
||||
@echo "changelog is prepared"
|
||||
rm -f *.xpi
|
||||
|
||||
rtest: rc index torrenthelp
|
||||
|
||||
release: rc index torrenthelp
|
||||
cat desc debian/changelog | grep -B 10 "$(LAST_VERSION)" | gothub release -p -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n $(VERSION) -d -; true
|
||||
|
||||
update-release:
|
||||
cat desc debian/changelog | grep -B 10 "$(LAST_VERSION)" | gothub edit -p -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n $(VERSION) -d -; true
|
||||
|
||||
delete-release:
|
||||
gothub delete -u eyedeekay -r onionsetproxy.js -t $(VERSION); true
|
||||
gothub delete -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION); true
|
||||
|
||||
recreate-release: delete-release release upload
|
||||
|
||||
upload: upload-xpi upload-deb
|
||||
|
||||
full-release: release submit upload-xpi torrent upload-torrent deb upload-deb upload-rss seed
|
||||
|
||||
WEB_EXT_API_KEY=AMO_KEY
|
||||
WEB_EXT_API_SECRET=AMO_SECRET
|
||||
|
||||
|
||||
-include ../api_keys_moz.mk
|
||||
|
||||
tk:
|
||||
echo $(WEB_EXT_API_KEY)
|
||||
|
||||
submit: moz-submit moz-sign
|
||||
|
||||
clean-artifacts:
|
||||
rm -fr web-ext-artifacts/*
|
||||
|
||||
##ODD NUMBERED, SELF-DISTRIBUTED VERSIONS HERE!
|
||||
moz-sign: version clean-artifacts
|
||||
@echo "Using the 'sign' target to instantly sign an extension for self-distribution"
|
||||
@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
||||
@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
||||
web-ext-submit --channel unlisted --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET)
|
||||
make copyss
|
||||
sleep 5
|
||||
|
||||
copyss:
|
||||
cp web-ext-artifacts/*.xpi ../onionbct@eyedeekay.github.io.xpi; true
|
||||
|
||||
##EVEN NUMBERED, MOZILLA-DISTRIBUTED VERSIONS HERE!
|
||||
moz-submit:
|
||||
#moz-submit: moz-version
|
||||
#@echo "Using the 'submit' target to instantly sign an extension for Mozilla distribution"
|
||||
#@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
||||
#@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
||||
#mv manifest.json .manifest.json
|
||||
#grep -v update_url .manifest.json > manifest.json
|
||||
#web-ext sign --channel listed --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET); true
|
||||
#sleep 5
|
||||
#mv .manifest.json manifest.json
|
||||
|
||||
rhz-submit: rhz-version
|
||||
@echo "Rhizome releases are disabled while browser is completed."
|
||||
#@echo "Using the 'sign' target to instantly sign an extension for self-distribution"
|
||||
#@echo "requires a JWT API Key and Secret from addons.mozilla.org to be made available"
|
||||
#@echo "to the Makefile under the variables WEB_EXT_API_KEY and WEB_EXT_API_SECRET."
|
||||
#web-ext-submit --channel unlisted --config-discovery false --api-key $(WEB_EXT_API_KEY) --api-secret $(WEB_EXT_API_SECRET); true
|
||||
#cp web-ext-artifacts/*.xpi ./onionbct@eyedeekay.github.io.xpi
|
||||
|
||||
getxpi:
|
||||
gothub download -t $(VERSION) -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -n onionbct@eyedeekay.github.io.xpi
|
||||
mv ./onionbct@eyedeekay.github.io.xpi ../onionbct-$(VERSION)@eyedeekay.github.io.xpi
|
||||
cp ../onionbct-$(VERSION)@eyedeekay.github.io.xpi ../onionbct@eyedeekay.github.io.xpi
|
||||
|
||||
torrent: getxpi
|
||||
rm -f "./onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent"
|
||||
mktorrent -a http://zviyq72xcmjupynn5y2f5qa3u7bxyu34jnqmwt6czte2l7idxm7q.b32.i2p/announce \
|
||||
-a http://s5ikrdyjwbcgxmqetxb3nyheizftms7euacuub2hic7defkh3xhq.b32.i2p/a \
|
||||
-a http://uajd4nctepxpac4c4bdyrdw7qvja2a5u3x25otfhkptcjgd53ioq.b32.i2p/announce \
|
||||
-a http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a \
|
||||
-a http://explodie.org:6969/announce \
|
||||
-a http://tracker.opentrackr.org:1337/announce \
|
||||
-a http://tracker.kamigami.org:2710/announce \
|
||||
-a http://tracker.internetwarriors.net:1337/announce \
|
||||
-a http://tracker.darli.net:6611/announce \
|
||||
-a http://tracker.corpscorp.online:80/announce \
|
||||
-a http://tracker.bz:80/announce \
|
||||
-a http://tracker.bt4g.com:2095/announce \
|
||||
-a http://retracker.sevstar.net:2710/announce \
|
||||
-a http://h4.trakx.nibba.trade:80/announce \
|
||||
-a http://www.proxmox.com:6969/announce \
|
||||
-a http://www.loushao.net:8080/announce \
|
||||
-a http://vps02.net.orel.ru:80/announce \
|
||||
-a http://tracker4.itzmx.com:2710/announce \
|
||||
-a http://tracker3.itzmx.com:6961/announce \
|
||||
-a http://tracker2.itzmx.com:6961/announce \
|
||||
-a http://tracker1.itzmx.com:8080/announce \
|
||||
-a http://tracker01.loveapp.com:6789/announce \
|
||||
-a http://tracker.zerobytes.xyz:1337/announce \
|
||||
-a http://tracker.yoshi210.com:6969/announce \
|
||||
-a http://tracker.torrentyorg.pl:80/announce \
|
||||
-a http://tracker.nyap2p.com:8080/announce \
|
||||
-a http://tracker.lelux.fi:80/announce \
|
||||
-a http://tracker.gbitt.info:80/announce \
|
||||
-a http://pow7.com:80/announce \
|
||||
-a http://opentracker.i2p.rocks:6969/announce \
|
||||
-a http://open.acgtracker.com:1096/announce \
|
||||
-a http://open.acgnxtracker.com:80/announce \
|
||||
-a http://mail2.zelenaya.net:80/announce \
|
||||
-a http://acg.rip:6699/announce \
|
||||
-n "onionbct-$(VERSION)@eyedeekay.github.io.xpi" \
|
||||
-o "onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent" \
|
||||
-w https://github.com/eyedeekay/Onion-in-Container-Browing-Mode-Firefox/releases/download/$(VERSION)/onionbct@eyedeekay.github.io.xpi \
|
||||
../onionbct@eyedeekay.github.io.xpi; true
|
||||
cp -v "./onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent" "./onionbct@eyedeekay.github.io.xpi.torrent"
|
||||
make index
|
||||
|
||||
upload-torrent:
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct@eyedeekay.github.io.xpi.torrent" -f "./onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent"
|
||||
|
||||
upload-xpi:
|
||||
gothub upload -u eyedeekay -r onionsetproxy.js -t $(VERSION) -n "onioncbt@eyedeekay.github.io.xpi" -f "./onioncbt@eyedeekay.github.io.xpi"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct@eyedeekay.github.io.xpi" -f "../onionbct@eyedeekay.github.io.xpi"
|
||||
|
||||
upload-deb:
|
||||
gothub upload -u eyedeekay -r onionsetproxy.js -t $(VERSION) -n "onionsetproxy.js_$(VERSION)-1_amd64.deb" -f "../onionsetproxy.js_$(VERSION)-1_amd64.deb"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION)-1_amd64.deb" -f "../onionbct.js_$(VERSION)-1_amd64.deb"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION).orig.tar.gz" -f "../onionbct.js_$(VERSION).orig.tar.gz"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION)-1.debian.tar.xz" -f "../onionbct.js_$(VERSION)-1.debian.tar.xz"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION)-1.dsc" -f "../onionbct.js_$(VERSION)-1.dsc"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION)-1_amd64.changes" -f "../onionbct.js_$(VERSION)-1_amd64.changes"
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t $(VERSION) -n "onionbct.js_$(VERSION)-1_amd64.buildinfo" -f "../onionbct.js_$(VERSION)-1_amd64.buildinfo"
|
||||
|
||||
lib: libpolyfill
|
||||
upload-docs:
|
||||
gothub release -p -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t docs -n "Documentation" -d "PDF's and text about the extension"; true
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t docs -n "Landing Page Documentation.pdf" -f ../smartlander.pdf
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t docs -n "Browser Design Documentation.pdf" -f ../browser.pdf
|
||||
|
||||
libpolyfill:
|
||||
wget -O chromium/browser-polyfill.js https://unpkg.com/webextension-polyfill/dist/browser-polyfill.js
|
||||
fmt: fmt-css fmt-html fmt-js
|
||||
|
||||
fmt:
|
||||
fmt-css:
|
||||
cleancss -O1 all -O2 all --format beautify home.css -o .home.css && mv .home.css home.css
|
||||
cleancss -O1 all -O2 all --format beautify info.css -o .info.css && mv .info.css info.css
|
||||
cleancss -O1 all -O2 all --format beautify search.css -o .search.css && mv .search.css search.css
|
||||
cleancss -O1 all -O2 all --format beautify sidebar.css -o .sidebar.css && mv .sidebar.css sidebar.css
|
||||
cleancss -O1 all -O2 all --format beautify options/options.css -o options/.options.css && mv options/.options.css options/options.css
|
||||
|
||||
fmt-html:
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes index.html > .index.html; mv .index.html index.html
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes window.html > .window.html; mv .window.html window.html
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes home.html > .home.html; mv .home.html home.html
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes toopie.html > .toopie.html; mv .toopie.html toopie.html
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes security.html > .security.html; mv .security.html security.html
|
||||
tidy --as-xhtml --drop-empty-elements no --input-xml --tidy-mark no -indent --indent-spaces 4 -wrap 0 --new-blocklevel-tags article,header,footer --new-inline-tags video,audio,canvas,ruby,rt,rp --break-before-br yes --sort-attributes alpha --vertical-space yes options/options.html > options/.options.html; mv options/.options.html options/options.html
|
||||
|
||||
fmt-js:
|
||||
find . -path ./node_modules -prune -o -name '*.js' -exec prettier --write {} \;
|
||||
find . -path ./node_modules -prune -o -name '*.json' -exec prettier --write {} \;
|
||||
|
||||
deborig:
|
||||
rm -rf ../onionsetproxy.js-$(VERSION)
|
||||
cp -r . ../onionsetproxy.js-$(VERSION)
|
||||
lint:
|
||||
fixjsstyle *.js
|
||||
gjslint *.js; true
|
||||
#eslint --color *.js
|
||||
|
||||
deborig: version
|
||||
rm -rf ../onionbct.js-$(VERSION)
|
||||
mkdir -p ../onionbct.js-$(VERSION)
|
||||
cp -r ./* ../onionbct.js-$(VERSION)
|
||||
cd ../onionbct.js-$(VERSION) && \
|
||||
rm -rf web-ext-artifacts .git node_modules && \
|
||||
tar \
|
||||
-cvz \
|
||||
--exclude=.git \
|
||||
--exclude=onionsetproxy.js.gif \
|
||||
-f ../onionsetproxy.js_$(VERSION).orig.tar.gz \
|
||||
--exclude=onionbct.js.gif \
|
||||
--exclude=*.pdf \
|
||||
-f ../onionbct.js_$(VERSION).orig.tar.gz \
|
||||
.
|
||||
|
||||
deb: deborig
|
||||
cd ../onionsetproxy.js-$(VERSION) && debuild -us -uc -rfakeroot
|
||||
cd ../onionbct.js-$(VERSION) && debuild -us -uc -rfakeroot
|
||||
|
||||
-include mirrors.mk
|
||||
|
||||
dat:
|
||||
wget -c -O dat.js https://bundle.run/dat-js
|
||||
|
||||
rss: torrent
|
||||
rm -f releases.diff
|
||||
mv releases.atom .releases.atom
|
||||
wget https://github.com/eyedeekay/Onion-in-Container-Browing-Mode-Firefox/releases.atom
|
||||
sed -i "s|<title>$(VERSION)</title>|<title>$(VERSION)</title>\n <enclosure url=\"$(MAGNET)\" type=\"application/x-bittorrent\" />|g" releases.atom
|
||||
|
||||
upload-rss: rss
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t docs -n "releases.atom" -f releases.atom
|
||||
|
||||
upload-updatemanifest:
|
||||
gothub upload -R -u eyedeekay -r Onion-in-Container-Browing-Mode-Firefox -t docs -n "updateManifest.json" -f updateManifest.json
|
||||
|
||||
webext:
|
||||
web-ext run -u "about:devtools-toolbox?type=extension&id=onionbct%40eyedeekay.github.io"
|
||||
|
||||
seed:
|
||||
cp -v "./onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent" "$(HOME)/.i2p/i2psnark"
|
||||
cp -v "../onionbct-$(VERSION)@eyedeekay.github.io.xpi" "$(HOME)/.i2p/i2psnark"
|
||||
|
||||
wire:
|
||||
cp -v "./onionbct-$(VERSION)@eyedeekay.github.io.xpi.torrent" "$(HOME)/i2p/MuWireDownloads/"
|
||||
cp -v "../onionbct-$(VERSION)@eyedeekay.github.io.xpi" "$(HOME)/i2p/MuWireDownloads/"
|
4
debian/README.Debian
vendored
4
debian/README.Debian
vendored
@ -1,7 +1,7 @@
|
||||
onionsetproxy.js for Debian
|
||||
onionbct.js for Debian
|
||||
|
||||
Please edit this to provide information specific to
|
||||
this onionsetproxy.js Debian package.
|
||||
this onionbct.js Debian package.
|
||||
|
||||
(Automatically generated by debmake Version 4.3.1)
|
||||
|
||||
|
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -1,17 +1,23 @@
|
||||
onionsetproxy.js (0.37-1) UNRELEASED; urgency=low
|
||||
onionbct.js (0.73-1) UNRELEASED; urgency=low
|
||||
|
||||
* Create an Onion Browsing context
|
||||
|
||||
-- idk <hankhill19580@gmail.com> Thu, 17 OCT 2019 00:52:19 -0400
|
||||
|
||||
onionbct.js (0.37-1) UNRELEASED; urgency=low
|
||||
|
||||
* Honor contextual ID when deleting history
|
||||
|
||||
-- idk <hankhill19580@gmail.com> Thu, 17 OCT 2019 00:52:19 -0400
|
||||
|
||||
onionsetproxy.js (0.35-1) UNRELEASED; urgency=low
|
||||
onionbct.js (0.35-1) UNRELEASED; urgency=low
|
||||
|
||||
* Automatically activate contexts
|
||||
|
||||
-- idk <hankhill19580@gmail.com> Thu, 01 Aug 2019 00:32:39 -0400
|
||||
|
||||
|
||||
onionsetproxy.js (0.31-1) UNRELEASED; urgency=low
|
||||
onionbct.js (0.31-1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release. Closes: #nnnn
|
||||
<nnnn is the bug number of your ITP>
|
||||
|
8
debian/control
vendored
8
debian/control
vendored
@ -1,17 +1,17 @@
|
||||
Source: onionsetproxy.js
|
||||
Source: onionbct.js
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: idk <hankhill19580@gmail.com>
|
||||
Build-Depends: debhelper (>=11~)
|
||||
Standards-Version: 4.1.4
|
||||
Homepage: https://github.com/eyedeekay/onionsetproxy.js
|
||||
Homepage: https://github.com/eyedeekay/Onion-in-Container-Browsing-Mode-Firefox
|
||||
|
||||
Package: onionsetproxy.js
|
||||
Package: onionbct.js
|
||||
Architecture: any
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: Plugin for configuring onion in Firefox and Chromium
|
||||
This is a webextension which safely configures a Browser on the
|
||||
Debian operating system to use Onion. onionsetproxy.js users form
|
||||
Debian operating system to use Onion. onionbct.js users form
|
||||
their own anonymity set, like TAILS users or Brave users do on
|
||||
the Tor network.
|
||||
|
8
debian/copyright
vendored
8
debian/copyright
vendored
@ -1,6 +1,6 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: onionsetproxy.js
|
||||
Source: https://github.com/eyedeekay/onionsetproxy.js
|
||||
Upstream-Name: onionbct.js
|
||||
Source: https://github.com/eyedeekay/onionbct.js
|
||||
|
||||
Files: .gitignore
|
||||
Makefile
|
||||
@ -12,8 +12,8 @@ Files: .gitignore
|
||||
.circleci/config.yml
|
||||
experiments/oniontab.md
|
||||
experiments/tunblink.md
|
||||
onionsetproxy.js.png
|
||||
onionsetproxy.js@eyedeekay.github.io.xpi
|
||||
onionbct.js.png
|
||||
onionbct.js@eyedeekay.github.io.xpi
|
||||
icons/toopie.png
|
||||
info.css
|
||||
info.js
|
||||
|
28
debian/rules
vendored
28
debian/rules
vendored
@ -4,17 +4,17 @@
|
||||
dh $@
|
||||
|
||||
override_dh_auto_install:
|
||||
mkdir -p $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$$(pwd)/debian/onionsetproxy.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
cp -r ./chromium/ $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./icons/ $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./options/ $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./_locales/ $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.js $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.html $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.css $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.md $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./manifest.json $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./LICENSE $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
ln -sf $$(pwd)/debian/onionsetproxy.js/usr/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$$(pwd)/debian/onionsetproxy.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
mkdir -p $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$$(pwd)/debian/onionbct.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
cp -r ./chromium/ $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./icons/ $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./options/ $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp -r ./_locales/ $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.js $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.html $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.css $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./*.md $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./manifest.json $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
cp ./LICENSE $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io/
|
||||
ln -sf $$(pwd)/debian/onionbct.js/usr/share/webext/onioncbt@eyedeekay.github.io \
|
||||
$$(pwd)/debian/onionbct.js/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
|
@ -1,3 +0,0 @@
|
||||
Container Browsing with Onion Tab
|
||||
=============================
|
||||
|
@ -1,45 +0,0 @@
|
||||
Usage with standalone HTTP Proxy
|
||||
--------------------------------
|
||||
|
||||
This functionality is currently disabled.
|
||||
|
||||
I developed a simple HTTP proxy that can be used with this extension to enable the
|
||||
user to initiate a re-start of the HTTP proxy tunnel, with a new set of keys and a
|
||||
new destination. This, combined with re-setting the browser settings back to the
|
||||
original defaults(which is also done by the HTTP Proxy when re-initiated), amounts
|
||||
to a "Fresh Identity" feature for the Onion browser.
|
||||
|
||||
Before you begin, get the [Standalone HTTP proxy from here](http://github.com/eyedeekay/httptunnel)
|
||||
and run it like so:
|
||||
|
||||
httpproxy -littleboss=start
|
||||
|
||||
You can also use 'go get'
|
||||
|
||||
go get -u github.com/eyedeekay/httptunnel/httpproxy
|
||||
|
||||
If you change the default host and port, you will need to alter the following guide.
|
||||
|
||||
In order to use it with the custom HTTP proxy, open the "Add-On's" menu and select
|
||||
the options for the onionsetproxy.js plugin. Change the "Proxy" configuration from
|
||||
|
||||
Host: 127.0.0.1
|
||||
Port: 9050
|
||||
|
||||
to
|
||||
|
||||
Host: 127.0.0.1
|
||||
Port: 7950
|
||||
|
||||
and change the "Control" configuration from:
|
||||
|
||||
Host: 127.0.0.1
|
||||
Port: 9050
|
||||
|
||||
to
|
||||
|
||||
Host: 127.0.0.1
|
||||
Port: 7951
|
||||
|
||||
Now, when you press the Toopie button in the toolbar, you will see in the output
|
||||
of the HTTP proxy that it has been re-started.
|
Binary file not shown.
Before Width: | Height: | Size: 4.9 MiB |
Binary file not shown.
Before Width: | Height: | Size: 357 KiB |
Binary file not shown.
@ -22,7 +22,7 @@
|
||||
],
|
||||
"manifest_version": 2,
|
||||
"name": "__MSG_extensionName__",
|
||||
"version": "0.37",
|
||||
"version": "0.73",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"homepage_url": "https://github.com/eyedeekay/Onion-in-Container-Browsing-Mode-Firefox",
|
||||
"icons": {
|
||||
|
@ -120,7 +120,7 @@ function SetControlHelpText() {
|
||||
|
||||
function getScheme() {
|
||||
const proxy_scheme = document.querySelector("#proxy_scheme");
|
||||
console.log("(options)Got i2p proxy scheme:", proxy_scheme.value);
|
||||
console.log("(options)Got Tor proxy scheme:", proxy_scheme.value);
|
||||
if (proxy_scheme.value == "HTTP") {
|
||||
return "socks";
|
||||
}
|
||||
|
Reference in New Issue
Block a user