-
-
Notifications
You must be signed in to change notification settings - Fork 362
feat: auto inject Vimium C #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit tries injecting Vimium C to inner PDF Viewer. It prefers the version of Vimium C on Edge Add-ons on MS Edge; while on Chrome it prefers the version on Chrome Web Store. This commit only affects the PDF Viewer page, but not options page. If there's a new text option to let users type an extension ID, then `static/pdf/vimium-c-injector.js` will use it.
|
呃抱歉昨晚上我没 wifi,我就没装 node_modules,没注意到 eslint 和 commitlint。新的提交按规则来了 |
This avoids an error log, at the expense of a bit longer loading time.
|
改了。现在 |
|
Hello, I find the hook The main places to fix are:
|
|
It would be perfect if you're willing to pull a request😀 |


describe the bug/feature 解决的问题或新增的功能
This commit tries injecting Vimium C to inner PDF Viewer, which is for #218 and gdh1995/vimium-c#383 .
summary of code change 描述发生的改变
It loads Vimium C's
lib/injector.jsonstatic/pdf/viewer.htmlloading, so that Vimium C will run on it.It prefers the version of Vimium C on Edge Add-ons on MS Edge; while on Chrome it prefers the version on Chrome Web Store.
This commit only affects the PDF Viewer page, but not options page.
If there's a new text option to let users type an extension ID, then
static/pdf/vimium-c-injector.jswill use it.