Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8470455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:31:25+00:00 2026-06-10T16:31:25+00:00

Ever since the new Greasemonkey 1.0 was released a few days ago, every site

  • 0

Ever since the new Greasemonkey 1.0 was released a few days ago, every site that has jQuery and where I use jQuery in my Greasemonkey script do not run my script properly. The jQuery I have in my GS script (using the @require metadata) conflicts with the page’s jQuery. This is due to the new @grant code.

I’ve read the documentation but still don’t know how to run GS scripts in a sandbox again; the only options seem to be to either grant access to a GS API or to grant it to none and run the script without any security limitations, which doesn’t work at all for me when I’ve designed my dozens of GS scripts to run WITH security limitations and like it that way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:31:26+00:00Added an answer on June 10, 2026 at 4:31 pm

    Greasemonkey 1.0, radically changed the way the sandbox works, busting thousands of scripts. This is a huge problem, and I hope you will join me in voicing your opinion/experiences on the principle bug report for this issue.

    The Greasemonkey blog claims that you can workaround the issue with the following:

    this.$ = this.jQuery = jQuery.noConflict(true);
    

    … Which I’m not sure will work in all cases. And it is the exact wrong approach from a side-effects-avoiding, DRY-principle, atomic-coding philosophy.   In my opinion, the best strategy is to restore the sandbox.

    Reactivate the sandbox by specifying a @grant value (other than none). Edit your Metadata Block to end with the following lines:

    // @grant       GM_addStyle
    // @grant       GM.getValue
    // ==/UserScript==
    /*- The @grant directive is needed to work around a design flaws introduced in GM 1.0
        and again in GM 4.0.
        It restores the sandbox.
    */
    

    The sandbox will be restored and all conflicts will be resolved.
    And the scripts will be compatible with superior engines like Tampermonkey and Violentmonkey.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ever since I installed emacs on a new machine I have seen an ugly
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
Ever since ereg became depreciated, I began to use preg_match. Unfortunately in my code,
Ever since British Summer Time ended in the UK last week my application has
Ever since I started programming this has been something I have been curious about.
Ever since I added a new Class to my Android app (specifically, a sqlite
I've been getting this error ever since i added a new table to my
I am quite new to utf-8 encoding and have used htmlentities() ever since, but
Ever since I have added a new database into the mongodb, it stopped syncing
Ever since Microsoft has introduced the application blocks, I've been bumping into people who

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.