diff options
author | Ray Song | 2016-09-18 00:40:21 +0800 |
---|---|---|
committer | Ray Song | 2016-09-20 21:57:53 +0800 |
commit | 4ff7701cfedc0a1d305be04e67179829dab00a3c (patch) | |
tree | 8b32a289c299518d2d15fc26307544ed40ca3683 | |
parent | 2c10b0f0a6c9d90a113350f65fbe057c9f9e45c2 (diff) | |
download | aur-4ff7701cfedc0a1d305be04e67179829dab00a3c.tar.gz |
better angular.js injector
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | wechatircd.install | 10 |
3 files changed, 11 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = wechatircd-git pkgdesc = IRC server capable of controlling Web WeChat - pkgver = r32.9732b27 + pkgver = r64.0424e14 pkgrel = 1 url = https://github.com/MaskRay/wechatircd install = wechatircd.install @@ -2,7 +2,7 @@ pkgname=wechatircd-git _pkgname=wechatircd -pkgver=r32.9732b27 +pkgver=r64.0424e14 pkgrel=1 pkgdesc="IRC server capable of controlling Web WeChat" arch=('i686' 'x86_64') @@ -24,6 +24,6 @@ pkgver() { package() { install -D "$_pkgname/wechatircd.py" "$pkgdir/usr/bin/wechatircd" - install -Dm644 "$_pkgname/webwxapp.js" -t "$pkgdir/usr/share/wechatircd/" + install -Dm644 "$_pkgname/injector.js" -t "$pkgdir/usr/share/wechatircd/" install -Dm644 wechatircd.service -t "$pkgdir/usr/lib/systemd/system/" } diff --git a/wechatircd.install b/wechatircd.install index 3fb497aa3ab3..c30cf635192d 100644 --- a/wechatircd.install +++ b/wechatircd.install @@ -4,12 +4,18 @@ post_install() { openssl req -x509 -newkey rsa:2048 -nodes -keyout /etc/wechatircd/key.pem -out /etc/wechatircd/cert.pem -subj '/CN=127.0.0.1' -days 9999 cat <<NOTE NOTE: -1. Redirect https://res.wx.qq.com/zh_CN/htmledition/v2/js/webwxApp2cbd9c.js to https://127.0.0.1:9000/webwxapp.js -2. Import /etc/wechatircd/cert.pem to your browser. Instructions for Chrome/Chromium are listed below: +1. Install userscript https://github.com/MaskRay/wechatircd/raw/master/injector.user.js +2. Import /etc/wechatircd/cert.pem to your browser. + +Instructions for Chrome/Chromium: a. Visit chrome://settings/certificates b. Import /etc/wechatircd/cert.pem c. 'Authorities' tab page -> 'Untrusted 127.0.0.1' -> 'Edit...' -> 'Trust this certificate for identifying websites.' +Instructions for Firefox: + a. Visit https://127.0.0.1:9000/injector.js + b. Your connection is not secureļ¼'Advanced->Add Exception->Confirm Security Exception' + Refer to https://github.com/MaskRay/wechatircd for details. NOTE fi |