userscripts | Skripte für die Firefox-Erweiterung Greasemonkey
kandi X-RAY | userscripts Summary
kandi X-RAY | userscripts Summary
userscripts
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of userscripts
userscripts Key Features
userscripts Examples and Code Snippets
Community Discussions
Trending Discussions on userscripts
QUESTION
FF 84.0.2, GM 4.10.0
The code can be seen at GitLab. The relevant part is:
...ANSWER
Answered 2021-Jan-17 at 18:43Got a solution from an answer to DOM parsing in JavaScript:
QUESTION
unsafeWindow
API was made so that userscripts could interact with the variables and functions of the pages the script executed on. However it is strongly discouraged as websites could then hijack userscripts through unsafeWindow
and make them execute malicious code. However, why was unsafeWindow
even necessary and why is it still used? Previously until Firefox 39, users were able to use the location hack as an alternative to unsafeWindow
. This hack eventually stopped working due to an update in Firefox 39 which patched this. Despite this, users could still use GM APIs in the isolated sandbox and insert code through a script tag like this:
ANSWER
Answered 2021-Jan-03 at 16:32Let's call the creation of a
QUESTION
I have the following qml code
...ANSWER
Answered 2020-Nov-03 at 14:31Problem is solved:
QUESTION
So I'm making a scraper with bs4 that scrapes this userscripts website. But I'm running in to a issue where I cant remove whitespaces. Everything I've done doesn't work. Can someone help me?
...ANSWER
Answered 2020-May-10 at 21:28To get the title without Announcements
try below css selector.
QUESTION
I'm a newbie in JS but am trying to learn by doing.
I use notion and am very annoyed by the sidebar that pops up whenever the mouse hovers over the left side of the app.
I read somewhere that I can use the Fluid app to push userscripts and that it might be possible to disable that functionality with custom styling.
But I can't seem to figure out how to get either the JS or CSS to disable mouseover events.
I think I found where the event is being listened for, but I'm not sure about next steps for how to remove that listener funtion, or to stop the function call.
This is where I think the event is being triggered, can anyone advise?
...ANSWER
Answered 2020-May-06 at 11:25You can add a mousemove capturing listener to a container of the element with the listener. On mousemove, if the target (element to which the event is being dispatched) is a descendant of the element with the page listener you want not to fire, call stopPropagation
on the event.
For example, in the below code, the page script tries to color an element when it or one of its descendants is hovered, but the second part (which can go into a userscript) will prevent that:
QUESTION
I have two arrays emails
and passwords
(though you may see more) that I want to use to authenticate users during sign in. It's a practice issue not something to implement in the industry. See below:
The other arrays checkEmails
and checkPasswords
are not useful here but they act as a storage for even failed sign in's.
Onto the code I have a condition that authenticates using only a predetermined email and password. See below:
ANSWER
Answered 2020-Mar-05 at 09:49You can check if your value (username and/or password) is included in an array by using Array#includes.
Example:
QUESTION
ANSWER
Answered 2017-Nov-27 at 09:31GM_getValue
and GM_setValue
are now obsolete in the GreaseMonkey. The correct methods are GM.setValue
and GM.getValue
.
The GreaseMonkey documentation uses often the old API call names, which is a continuous error in it. Probably it wasn't correctly updated.
As the documentation here says, GM functions can run in different scopes. Unfortunately, I didn't find any info until now, which scopes are existing and how can we switch between them.
The old references manywhere on the net, using GM_getValue
are all obsolete.
The important things:
- While
GM_getValue
were functions with a return value,GM.getValue
andGM.setValue
returnPromise
s. - You can use them nearly as you used in the old, nice versions, using the
await
call.
This example on the remote link, works:
QUESTION
As the documentation states, you can call webdriver.FirefoxProfile() with the optional argument of profile_directory
to point to the directory of a specific profile you want the browser to use. I noticed it was taking a long time to run this command, so when I looked into the code, it looked like it was copying the specified profile Problem is, it takes an extremely long time for the profile to copy (something like >30 minutes, didn't have the patience to wait for it to finish.)
I'm using a hybrid of userscripts and selenium to do some automation for me, so to setup a new profile every single time I want to test out my code would be burdensome.
Is the only way to change this behaviour to edit the firefox_profile.py
itself (if so, what would be the best way to go about it?)?
ANSWER
Answered 2020-Feb-03 at 20:49As per the current implementation of GeckoDriver with Firefox using the FirefoxProfile()
works as follows :
If case of initiating a Browsing Session through a new Firefox Profile as follows :
QUESTION
I created JANITOR which:
Inserts a navigation tree for modules, packages and types (interfaces, classes, enums, exceptions, errors, annotations) into the Javadoc pages of Java 11+.
The main elements involved are:
...ANSWER
Answered 2019-Dec-19 at 22:23try using the css styling "fixed"
QUESTION
I have a problem with the refresh
part. Currently, the function to refresh
is OK.
But I want to refresh when the user has finished touching the iphone.
...ANSWER
Answered 2019-Dec-06 at 03:21You can use crrefresh library for doing this thing
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install userscripts
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