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 6695815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:16:02+00:00 2026-05-26T06:16:02+00:00

[The following is self-answering post after resolving the problem by myself. I guess some

  • 0

[The following is self-answering post after resolving the problem by myself. I guess some people may find it useful.]

I try to use JQuery’s resizable and draggable in Greasemonkey script, and

  • I get error in JS console “Component is not available
    (NS_ERROR_NOT_AVAILABLE)”,
  • OR:
  • I get no errors in JS console, but draggable doesn’t work.

How to solve this?

  • 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-05-26T06:16:03+00:00Added an answer on May 26, 2026 at 6:16 am

    The reason is that some versions of JQuery and its plugins are not compatible with GreaseMonkey.

    The following is the code snippet that is confirmed to be working with Firefox 7.0.1 + GreaseMonkey 0.9.11
    (should probably work in Fx 3.0+ with GM 0.8+).
    It takes advantage of GreaseMonkey’s 0.8+ @require and @resource commands. Files in @require and @resource
    are downloaded (once) when the user script is installed, and stored on disk in the same folder as the user script.
    When the set of dependencies is changed e.g. by the user playing with code, all dependencies are re-downloaded.

    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
    // @require       http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js
    
    $('#someid').draggable().resizable();
    

    You may add the following after @requires to load JQuery UI CSS, but it is not necessary:

    // @resource  jqueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css
    
    // load JQuery UI CSS
    var jqueryUICSS = GM_getResourceText("jqueryUICSS");
    GM_addStyle(jqueryUICSS);
    

    Some information about compatibility:

    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js //DRAGGABLE FAILS
    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js //INCOMPATIBLE
    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js //OK
    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js //DRAGGABLE FAILS
    
    // @require       http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js //OK
    // @require       http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js //seems okay, but http://wiki.greasespot.net/Third-Party_Libraries says some other stuff is incompatible
    
    // @resource  jqueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css //OK
    // @resource  jqueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css //OK
    

    Literature:

    • http://wiki.greasespot.net/Third-Party_Libraries
    • http://viralpatel.net/blogs/2010/01/jquery-resizable-draggable-resize-drag-tutorial-example.html
    • http://strd6.com/2009/02/how-to-load-jquery-ui-css-in-greasemonkey/

    Related StackOverflow questions:

    • Greasemonkey @require jQuery not working "Component not available"
    • jQuery UI Dialog Throw Errors When Invoked from Greasemonkey
    • How can I use jQuery in Greasemonkey?
    • How to embed additional jQuery plugins into Greasemonkey
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem can be easily defined with the following code: self.Bind(wx.EVT_MENU_OPEN, self.OnAbout) This will
I am doing this with the following: [[self navigationController] setNavigationBarHidden:YES animated:YES]; and also I
I am not a fan of the following construction if (self = [super init])
The following code: class MyClass(): def test(self): self.__x = 0 def __setattr__(self, name, value):
i have the following code def get(self): date = datetime.date.today() loc_query = Location.all() last_cursor
I have the following code: class IncidentTag: def __init__(self,tag): self.tag = tag def equals(self,obj):
I have the following example code: class A(object): def __init__(self, id): self.myid = id
Why does the following: class A(object): def __init__(self, var=[]): self._var = var print 'var
I create the following class: class Image(object): def __init__(self, extension, data, urls=None, user_data=None): self._extension
If I have the following piece of Ruby code: class Blah def self.bleh @blih

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.