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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:25:07+00:00 2026-05-27T22:25:07+00:00

This code was provided to me in another question I asked but I am

  • 0

This code was provided to me in another question I asked but I am getting errors right at the start. Here is the part of the code causing the problem:

// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @require     https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
// @resource    jqUI_CSS http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css
// ==/UserScript==

var cssResource = GM_getResourceText("jqUI_CSS");
GM_addStyle(cssResource);

$("#pickMe").datepicker();

The first error I get is “GM_getResourceText is not defined”

If I comment out that, and the next line, then the next error I get is
“uncaught referenceerror $ is not defined.” And I get that on the last line.

It’s like the script is not getting the jQuery stuff from Google.

Any ideas? Thanks!

  • 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-27T22:25:08+00:00Added an answer on May 27, 2026 at 10:25 pm

    In Chrome, “Userscripts” are extensions. The easiest way to use external libraries is by configuring the code through a manifest file.

    Download jquery.min.js, jquery-ui.min.js and jquery-ui.css, and place them in the same directory. Make sure that you resolve the paths of the images (CSS), by replacing all occurrences of url(...) with url(http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/...).

    Create a manifest.json file, and add the following content:

    {
        "name": "Name of your extension.",
        "version": "1.0",
        "manifest_version": 2,
        "content_scripts": [{
            "js": [
                   "jquery.min.js",
                   "jquery-ui.min.js",
                   "mycode.js"
                  ],
            "css": [ "jquery-ui.css" ],
            "matches": [ "http://similarto-at-include-in-greasemonkey.com/*" ],
            "run_at": "document_end"
        }]
    }
    

    Create a file called mycode.js (or any desired name), and add the following content:

    $("#pickMe").datepicker();
    

    You can load or pack your extension via chrome://extensions/, developer mode.

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

Sidebar

Related Questions

I asked this morning a question about a jQuery code that's not working (which
This question is related to my earlier question, asked here: How do I get
I know many have asked this question before, but as far as I can
Hopefully this is a simple one, but can anyone provide some simple c# code
Everyone uses source-code control to manage versions (right?) and this provides some level of
This code produces a FileNotFoundException, but ultimately runs without issue: void ReadXml() { XmlSerializer
In another question I was provided with a great answer involving generating certain sets
I have the same problem as the user in this question , which is
this question is based on answer got from another SO question, can be found
This is not another question about 'How Can I Sort Dynamically (based on an

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.