userscript | Greasemonkey 脚本

 by   FirefoxBar JavaScript Version: Current License: No License

kandi X-RAY | userscript Summary

kandi X-RAY | userscript Summary

userscript is a JavaScript library typically used in Programming Style applications. userscript has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Greasemonkey 脚本
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              userscript has a low active ecosystem.
              It has 82 star(s) with 15 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 15 have been closed. On average issues are closed in 94 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of userscript is current.

            kandi-Quality Quality

              userscript has 0 bugs and 0 code smells.

            kandi-Security Security

              userscript has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              userscript code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              userscript does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              userscript releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of userscript
            Get all kandi verified functions for this library.

            userscript Key Features

            No Key Features are available at this moment for userscript.

            userscript Examples and Code Snippets

            No Code Snippets are available at this moment for userscript.

            Community Discussions

            QUESTION

            Content Security Policy: resource blocked but CSP is configured to allow it
            Asked 2021-Jun-07 at 20:48

            I have a GreaseMonkey user script that injects some HTML code into a page, and the HTML code is containing some JavaScript which points to an external script, which requires Google Analytics to work. To "bypass" Content Security Policy i injected this code just before :

            ...

            ANSWER

            Answered 2021-Jun-07 at 20:48

            It's unclear what you want to achieve. It does not make any sense to change the tag script based in the DOM. Just don't set it in the first place or set it according to your needs.

            Source https://stackoverflow.com/questions/67877646

            QUESTION

            How to prepend to a file in PowerShell?
            Asked 2021-Jun-05 at 17:52

            I'm generating two files, userscript.meta.js and userscript.user.js. I need the output of userscript.meta.js to be placed at the very beginning of userscript.user.js.

            Add-Content doesn't seem to accept a parameter to prepend and Get-Content | Set-Content will fail because userscript.user.js is being used by Get-Content.

            I'd rather not create an intermediate file if it's physically possible to have a clean solution.

            How to achieve this?

            ...

            ANSWER

            Answered 2021-Jun-05 at 17:52
            $(
                (Get-Content userscript.meta.js -Raw)
                (Get-Content userscript.user.js -Raw)
            ) | Out-File userscript.user.js
            

            Source https://stackoverflow.com/questions/67852305

            QUESTION

            Show link URL on mouse position
            Asked 2021-Jun-04 at 20:08

            I'm looking for a browser addon, userscript or some simple way that would display the URL of a link on the mouse position instead of the bottom left corner, like this for example.

            Edit: It was easier than I thought, got it working with an one line userscript.

            https://jsfiddle.net/0b819fx4/

            ...

            ANSWER

            Answered 2021-Jun-04 at 15:28

            Not sure exactly whats your requirement but seems you are looking for some title. Can you try with this:

            Source https://stackoverflow.com/questions/67839888

            QUESTION

            JS get element return undefine
            Asked 2021-May-31 at 04:44

            I want to change the values of the buttons on the page with Tampermonkey, but I can't change it because it says the button is undefined?

            HTML part

            ...

            ANSWER

            Answered 2021-May-31 at 04:44

            I have modified your changeSpeed function. It tries to select the buttons at 1 second interval (you might want to update this interval). If found clearInterval is called and the rest of the code is executed.

            Source https://stackoverflow.com/questions/67767601

            QUESTION

            TamperMonkey JS UserScript bypassing a waiting time
            Asked 2021-May-20 at 14:51

            Trying to write a userscript for TamperMonkey to be running in browser for bypassing a waiting time as a training. Here is the script used in that page:

            ...

            ANSWER

            Answered 2021-May-20 at 14:51

            The variables you declare in your userscript are not referenced at all in the page's script, so I don't know what you're expecting the userscript to affect.

            Since the page's script retrieves the seconds remaining from a .seconds element, you can modify that element to remove the timeout:

            Source https://stackoverflow.com/questions/67622766

            QUESTION

            Cannot getElementsByName of a website until I inspect it
            Asked 2021-May-18 at 08:59

            I am a user of this website. The reason that I want to get elements of the website is its web design is so inconvenient that I tried to write a script, not manully, to modify some elements' value. But I encountered an issue that I cannot access an element by getElementsByName("name") or getElementById("name") UNTIL I inspect the element by CTRL + SHIFT + C in developer mode. BTW, I can't get Elements even after inspecting on Firefox ESR 78.10.1.

            You guys can tried to see what is the problem. This is the screenshot on Edge Chromium as I try to get the username .

            As I have researched, some says the page is not fully loaded, but I wrote this js to test if it is loaded.

            ...

            ANSWER

            Answered 2021-May-18 at 08:59

            In Chrome, it has a nice feature when using the console if you select an iFrame it will target this for the document. It looks like in Firefox is does not have this feature.

            If your wanting to do this with code you will basically need to do the same thing as Chrome.

            Also if you always want to select the same thing, you may also want to do window.top to also make sure you always starting from the same place, in case inside the inspect you select another document.

            So using this idea, this should do the trick.

            Source https://stackoverflow.com/questions/67565281

            QUESTION

            Why does a tampermonkey script for https://news.google.com/* appear in the menu for https://www.nytimes.com/?
            Asked 2021-May-14 at 01:52

            I have a tampermonkey script with this header:

            ...

            ANSWER

            Answered 2021-May-14 at 01:52

            Because the page contains an iframe, and that iframe links to news.google.com:

            Userscripts run in iframes, and when they do, they get added to the Tampermonkey icon at the top.

            Source https://stackoverflow.com/questions/67528112

            QUESTION

            Puppeteer: Clicking button on a website doesn't work
            Asked 2021-May-11 at 22:37

            I'm trying to find the corresponding code for puppeteer to automate a button press.

            In a userscript it can be done easily via

            ...

            ANSWER

            Answered 2021-May-04 at 03:05

            The below code should work.

            Source https://stackoverflow.com/questions/67377791

            QUESTION

            How to stop gmail from opening the email when I click the button I added to it with tampermonkey?
            Asked 2021-May-08 at 18:33

            I did this tampermonkey script to parse my gmail inbox items and add a button linking to our Redmine Issue Tracker, so I can open the thread without having to open the email. This button I added, immediately open a new tab and switch focus to it.

            It works fine, except that every time I click the button, it also opens the email on the Gmail page/browser tab. To fix this, I added a setTimeout(function() { window.history.go(-1); }, 1000) to jump back after opening the link.

            The problem is that this does not allow me to open several issues at once, i.e., by holding the Ctrl+Click because it opens the email and jumps back (big flickering).

            How could I stop the email from opening when I click on the button I added?

            I tried setting the timeout to 0, i.e., setTimeout(function() { window.history.go(-1); }, 0), but this does not helps because GMail opens the email both, in the current browser tab/page and in a new page (along with my Redmine page), then I have 2 new pages opened when I click my button with Ctrl+Click.

            1. Is there something I could add to setTimeout(..., 0) which could cancel the email opening before it starts? (So I can open several tabs at once by Holding the Ctrl button)
            2. Or is there a way to remove the click event from opening the email when I click on the button I just added? (So I can open several tabs at once by Holding the Ctrl button)
            ...

            ANSWER

            Answered 2021-May-08 at 18:33

            Simply preventing the event from propagating up to Gmail's click listener on the row does the trick:

            Source https://stackoverflow.com/questions/67450734

            QUESTION

            In Tampermonkey using @require with jQuery doesn't work
            Asked 2021-May-07 at 08:40

            For the life of me I cannot get this to work.

            I'm trying to write a userscript with tampermonkey that is @require'ing two jQuery resources - jQuery and jQuery UI.

            Every single time, chrome's console gives me two to four errors, and they all looks like this:

            core-c30de8a3f5468380db0b.js:1 GET about:blank net::ERR_UNKNOWN_URL_SCHEME

            When I remove the two @requires, those errors go away. I've tried it with and without the window.jQ, http and https, pulling from jQuery directly and the Google ajax version, I've tried running at document start and document idle, I've tried about everything. All the rest of the script works, but requiring doesn't and obviously the jQuery bit doesn't.

            Here is everything I have so far:

            ...

            ANSWER

            Answered 2021-May-07 at 08:40

            Tested, working perfectly. the require works alright maybe some other EXT or something is blocking ?

            anyhow, fixed it a bit so the drag work as well.

            Source https://stackoverflow.com/questions/67431103

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install userscript

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/FirefoxBar/userscript.git

          • CLI

            gh repo clone FirefoxBar/userscript

          • sshUrl

            git@github.com:FirefoxBar/userscript.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular JavaScript Libraries

            freeCodeCamp

            by freeCodeCamp

            vue

            by vuejs

            react

            by facebook

            bootstrap

            by twbs

            Try Top Libraries by FirefoxBar

            HeaderEditor

            by FirefoxBarTypeScript

            xStyle

            by FirefoxBarJavaScript

            firefoxbar.github.io

            by FirefoxBarHTML

            userchromeJS

            by FirefoxBarJavaScript

            TiebaSDK

            by FirefoxBarPHP