Skip to content

Instantly share code, notes, and snippets.

@Martii
Created November 21, 2014 06:09
Show Gist options
  • Save Martii/2f032c172d438435aef7 to your computer and use it in GitHub Desktop.
Save Martii/2f032c172d438435aef7 to your computer and use it in GitHub Desktop.
Reduced test case for uglify-js
!function(){// ==UserScript==
// @name RFC 2606§3 - Hello, World!
// @namespace http://localhost.localdomain
// @description JavaScript alert box saying Hello, World!
// @copyright 2007+, Marti Martz (http://userscripts.org/users/37004)
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/
// @version 0.0.0
// @include http://www.example.com/*
// @include http://www.example.net/*
// @include http://www.example.org/*
// ==/UserScript==
alert("Hello, World!")}();
(function () {
// ==UserScript==
// @name RFC 2606§3 - Hello, World!
// @namespace http://localhost.localdomain
// @description JavaScript alert box saying Hello, World!
// @copyright 2007+, Marti Martz (http://userscripts.org/users/37004)
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/
// @version 0.0.0
// @include http://www.example.com/*
// @include http://www.example.net/*
// @include http://www.example.org/*
// ==/UserScript==
alert('Hello, World!');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment