Closed Wei-Winter closed 1 year ago
That source code is too long to verify! Looks like it's working to me. You can install it on the PC version, maybe you can check the console log with F12? By the way, that toolbar looks useful.
该源代码太长,无法验证! 看来它对我有用。 PC版可以安装,也许F12可以查看控制台日志? 顺便说一句,该工具栏看起来很有用。
I'm using ios Orion browser, can't look at the log 😂 execute js should not support my browser, I'm using android firefox can run this code normally. The usage of this code is to get the web page element rules, first use the gesture to run the js after the selection box will appear in the lower right corner, in the long press need to get the location of the element, then click on the menu will get the element rules, you can zoom in and out in order to get the parent and child elements, finally click on the export will automatically copy to the pasteboard Used to get the rules of advertisement elements to block them
ok Waiting for Orion support
💡I will add send messge to other addons with custom gesture at a later date. You can create an addon, and send message to it
Version 3.5 You can send a message to other add-on with Custom gesture. https://github.com/utubo/firefox-simple_gesture/commit/d0e6d4d993bf72e80d396d43b43af636e907cd8b
3.5版本 您可以使用自定义手势向其他加载项发送消息。 d0e6d4d
How is this feature implemented and what does it do, I know just a little bit about the code 🧐
This call browser.runtime.sendMessage. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/sendMessage
I wrote this js inside a custom gesture and tried to execute it with a gesture and found that it didn't work