webextension | Outil d'évaluation de l'accessibilité Web
kandi X-RAY | webextension Summary
kandi X-RAY | webextension Summary
Outil d'évaluation de l'accessibilité Web (et plus).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Display all tests
- Send the response to the test process .
- Executes the mutation .
- Set action handler
- Filters the given element according to the ARIA section
- Convert xpath to xpath
- Handle a message to the user
- Converts an array to a list .
- Applies formatting code to set items and highlights .
- Adds an item to the list
webextension Key Features
webextension Examples and Code Snippets
Community Discussions
Trending Discussions on webextension
QUESTION
Using the following code I can create custom contextual identity in Firefox (also see docs). My question is: how do I set my own name for cookieStoreId property. Firefox will always name it like firefox-container-XY by default.
...ANSWER
Answered 2022-Feb-21 at 03:12It is not possible because cookieStoreId name is always auto-assigned by Firefox.
QUESTION
I'm developing an easy addon for the browser for exercise since I'm new on javascript and I'm reading documentation related to the topic by https://developer.mozilla.org/en-US/docs/Web/API
My purpose is able to replicate the "Copy as cURL" of the Network tab inside the Browser devtools inside a context menu that I'm creating.
For example if I consider a "Copy as cURL" command by https://stackoverflow.com (by using Firefox 91.5.0esr (64-bit)):
...ANSWER
Answered 2022-Mar-27 at 15:10There's no way to get this info retroactively for a tab, so you'll have to observe the network constantly and store the data in a global object per each tab id and frame id to support frames.
QUESTION
I'm getting started with addon development on Firefox and have trouble making the debugger work.
I'm using Visual Studio Code 1.65, with the extension Debugger for Firefox (version 2.9.6), on a Debian machine, with Firefox 91.6.
I use this standard, unmodified, run configuration:
...ANSWER
Answered 2022-Mar-08 at 09:27According to the part about popup debugging in Mozilla's documentation, this behaviour likely happens because by default, when clicking outside of the popup, it closes and its code unloads.
The solution is to change the ui.popup.disable_autohide
setting to true in about:config
, so that the popup remains open, and the code loaded, when clicking elsewhere.
QUESTION
Currently I'm working on my own Firefox extension and I've met the problem with adding listener to an onclick
event for a context menu item.
manifest.json
...ANSWER
Answered 2022-Feb-23 at 13:49I've found a solution - browser.menus.onClicked.addListener()
working properly, just there is a necessity to enable logging in browser settings.
First, go to about:config
and find key extensions.logging.enabled
and switch it to true
. Then, display Browser Console from Menu Bar -> Tools -> Browser Tools -> Browser Console
or by shortcut Ctrl+Shift+J
.
Be aware that Browser Console is not the same as Firefox Developer Tools (from F12 or Ctrl+Shitft+I)!
Last, but not least enable Show Content Messages
in Browser Console
QUESTION
Firefox allows us to apply filters like tabId
, urls
to requests before intercepting them using webRequest.RequestFilter
So far so good. The problem is this code
...ANSWER
Answered 2022-Feb-23 at 03:39We can filter requests that aren't related to a tab by setting tabId
to -1
QUESTION
I am building an extension in Thunderbird with UI element message_display_action for my school project. I am wondering if I can access full email source code from java script file that I am using for building up my html page when pressing on button my extension. I found a funciton named getFull(messageId) in documentation at https://webextension-api.thunderbird.net/ but I don't understand how to use that function and I don't even know what messageId is. I know it is a integer but I don't know how to get that integer for a specific email. I entered permission (messagesRead) in my manifest file of extension for reading emails but i still don't know how to use that function. I didn't find any examples or tutorials on the internet so if anyone can help me or atleast point me to the right direction.
...ANSWER
Answered 2022-Feb-06 at 15:44id
of the currently displayed message
You should take a look at https://github.com/thundernest/sample-extensions/tree/master/messageDisplay, which is an example how to get the id
of the currently displayed message from the messageDisplayAction
using messageDisplay.getDisplayedMessage()
.
See also https://webextension-api.thunderbird.net/en/latest/messageDisplay.html.
messages.getFull()
Didn't find a small example using that API. As a hint you should note that this function works on the different MIME parts a mail consists of.
You will not get the complete source of the email that way. To get the raw source you would need to use messages.getRaw()
. But you should probably not use getRaw()
unless you really need it, because you would need to handle the complete parsing of the message yourself.
QUESTION
UPDATE: I realize now that in the scenario described below I will need to be careful of infinite loops since the page being redirected to is the same (minus the added param) as the initial page. Does anyone have any experience with that in Webextensions and can offer any advice on how best to avoid these loops?
I've written a few Webextensions for Firefox before but it's been a few years (a little out of practise). But a new problem has arisen for which I can see no solution except to write my own Webextension.
How would I modify the URL of a page and add a query parameter? I am specifically trying to modify the URL of Google Docs pages and add the query param ?mode=html
So for example, a Google Docs URL might look like: https://docs.google.com/document/d/7Ujfjsd69To7lInXFOdn49nAxLLhfn43fj43JHDTp87/edit
I am looking to create an extension that will modify that URL so it becomes: https://docs.google.com/document/d/7Ujfjsd69To7lInXFOdn49nAxLLhfn43fj43JHDTp87/edit?mode=html
(Obviously I only want this param appended when the URL being loaded matches https://docs.google.com/document/d/*)
Can anyone give me a pointer on how to start that? What extensionAPI function(s) would I need to use to do that? At what point in the lifespan of the request should it happen etc?
...ANSWER
Answered 2022-Jan-28 at 15:25Note: requires "webRequest" & "webRequestBlocking" permission plus host permission
QUESTION
I want to use typescript + Vue 3 to develop a google chrome extension. In the google chrome extension popup index, the typescript code index.ts
looks like:
ANSWER
Answered 2022-Jan-28 at 15:23Try placing the following in a src/shims-vue.d.ts
file:
QUESTION
Here is my background script;
...ANSWER
Answered 2021-Dec-30 at 08:00activeTab
works only when the user explicitly invokes your extension as described in the documentation for WebExtensions and Chrome extensions). Evidently, its name is highly misleading: it should have been something like activeTabWhenInvoked
.
In order to access any tab without prior interaction with your extension you'll have to add broad host permissions in manifest.json:
QUESTION
I've been working for few months with QTP (UFT One 15.0.2), and today it has stopped recording (when I do the actions no lines are written in the script and no objects are added to the objects repository) and recognizing objects with the spy feature.
I am using the WEB add-in, and as I've been working for months with Mozilla Firefox I have checked that the WebExtension.xpi is well added to the browser.
I've tried to open mozilla before and after UFT One, I've also restarted my computer, I've checked the size of the screen browser is 100% and that in the Record and Run Settings the option " Record and run on any open browser" is checked for Web.
...ANSWER
Answered 2021-Nov-12 at 07:41This situation usually occurs because the company's IT department has changed the related policy, causing the UFT Firefox extension to fail to run normally.
You can check if the HP.UFT.Firefox.NativeMessagingHost running in Windows task manager after openning Firefox while the extension is enabled, and check if the Micro Focus UFT Agent content script loaded in Firefox debugger's Sources tab(note: you need to check the "Enable browser chrome and add-on debugging toolboxes" in Web Developer Tools' Setting firstly).
If one of these things does not exist, you should check the policy change with your IT: did they block the related thing running?
If they all exist, you can open a CPE case to UFT One support. They will help you to do the further investigation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webextension
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page