Greasemonkey

I have started working on a greasemonkey script. I tried using jquery but sadly the page I was working on doesn’t include jquery. Found this link which allows you to use jquery.

Later found out, it wasn’t required on the newer versions of greasemonkey which allows loading external js/css using @require. The mistake I was doing was: the @require tags are required between

// ==UserScript==
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

This is cleanly mentioned at the greasespot wiki here. That’s why the say read the manual.

3 replies on “Greasemonkey”

  1. hareesh says:

    LOL

    i was about to say why all this heck of fancy library why can’t you just insert another script tag in run time like.

    function IncludeJavaScript(jsFile)
    {
    document.write(”);
    }

    but after seeing the the last line…. LOL

  2. hareesh says:

    OOps…

    my comment got embedded as script tag…

    • Sandip says:

      I am trying to embed script on a website I don’t control. I don’t think that can be with your simple script.

Leave a Reply