firefox-addon

How to use pdf.js library in a firefox addon?

旧时模样 提交于 2020-07-22 21:43:29
问题 I'm making a Firefox add-on extension to insert a pdf document in the translated page of Google and I want to use pdf.js . Don't want to use embed or iframe tags to do it, I want to do my own pdf viewer. I'm trying to use the pdj.js library in a Firefox add-on, but it not work. I have already tried to do it adding this in manifest.json . "content_scripts": [ { "matches":["*://translate.google.com/*"], "js": ["script.js","pdf.js"] } [enter image description here][1] ] but when I do: pdfjsLib

How to use pdf.js library in a firefox addon?

▼魔方 西西 提交于 2020-07-22 21:36:15
问题 I'm making a Firefox add-on extension to insert a pdf document in the translated page of Google and I want to use pdf.js . Don't want to use embed or iframe tags to do it, I want to do my own pdf viewer. I'm trying to use the pdj.js library in a Firefox add-on, but it not work. I have already tried to do it adding this in manifest.json . "content_scripts": [ { "matches":["*://translate.google.com/*"], "js": ["script.js","pdf.js"] } [enter image description here][1] ] but when I do: pdfjsLib

Why does React hot-reloading on Firefox automatically open the Debugger?

浪子不回头ぞ 提交于 2020-07-20 19:44:07
问题 OS: MacOS Catalina 10.15.5 Browser: Firefox 78.0.2 with React Developer Tools 4.8.0 add-on enabled IDE: Visual Studio Code 1.46.1 Framework: React This all of a sudden started happening today. Maybe Firefox updated in the background without me knowing, but one minute this never happened, and now it won't stop happening. Problem: Whenever I save a local file I am working on that has a React error (could be a missing component prop, or improper syntax), Firefox reloads the page but then directs

Why does React hot-reloading on Firefox automatically open the Debugger?

别来无恙 提交于 2020-07-20 19:40:48
问题 OS: MacOS Catalina 10.15.5 Browser: Firefox 78.0.2 with React Developer Tools 4.8.0 add-on enabled IDE: Visual Studio Code 1.46.1 Framework: React This all of a sudden started happening today. Maybe Firefox updated in the background without me knowing, but one minute this never happened, and now it won't stop happening. Problem: Whenever I save a local file I am working on that has a React error (could be a missing component prop, or improper syntax), Firefox reloads the page but then directs

Is there a way to find where the code creates the dynamically popup on browsers?

无人久伴 提交于 2020-06-29 04:26:13
问题 When I open a website that's not developed by me, it created a pop up of a DIV element. How can I find which code create that popup? I tried to set the breakpoint, but it only show the popup in the first time. Please note the key here are It's a website that's not developed by me The Popup is a DiV The popup only show the first time. If I refresh the page, it's gone. I'm not asking you to debug the site for me, I want to learn the ways to debug it by myself. What I'm after is programmatically

Firefox: How can I add/modify toolbars using the Add-on SDK (Jetpack)

∥☆過路亽.° 提交于 2020-06-24 05:44:35
问题 So I've looked over the documentation for the Add-on SDK several times now and no where can I see how to create toolbars or modify existing ones. They have a tutorial on creating add-on bar icons but thats not what I want. Does the Add-on SDK support this yet? If it does, can someone link me to an example/tutorial. 回答1: This works for me: var data = require("self").data; var {Cc, Ci} = require("chrome"); var mediator = Cc['@mozilla.org/appshell/window-mediator;1'].getService(Ci