Skip to content

Instantly share code, notes, and snippets.

@FinnE
Created January 4, 2012 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FinnE/1558869 to your computer and use it in GitHub Desktop.
Save FinnE/1558869 to your computer and use it in GitHub Desktop.
Greasemonkey user script: Demonstrates problem with @requiring a script that doesn't end in a semicolon.
// ==UserScript==
// @name RequireExample
// @namespace http://diveintogreasemonkey.org/download/
// @description Demonstrates problem with @requiring a script that doesn't end in a semicolon.
// @include *
// @require https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js
// ==/UserScript==
(function(){
alert("Hello");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment