Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force yourself to learn JavaScript.
// If you're a glutton for punishment, and/or claim
// that JavaScript libraries have too much "bloat",
// use this to force yourself to write JS longhand.
(function(window) {
function screwed() {
window._ = null;
window.$ = null;
window.$A = null;
window.$F = null;
window.$H = null;
window.$R = null;
window.$w = null;
window.$defined = null;
window.$type = null;
window.$merge = null;
window.$extend = null;
window.$native = null;
window.$chk = null;
window.$pick = null;
window.$random = null;
window.$time = null;
window.$clear = null;
window.$$ = null;
window.dojo = null;
window.Ext = null;
window.jQuery = null;
window.SC = null;
window.YAHOO = null;
window.YUI = null;
window.Zepto = null;
window.setTimeout(screwed, 100);
}
screwed();
})(this);
@mathiasbynens

This comment has been minimized.

Show comment
Hide comment
@mathiasbynens

mathiasbynens May 23, 2011

Evil indeed! :) You could rewrite this as $ = $$ = dojo = Ext = jQuery = SC = YAHOO = YUI = Zepto = null; if you wanted to.

Evil indeed! :) You could rewrite this as $ = $$ = dojo = Ext = jQuery = SC = YAHOO = YUI = Zepto = null; if you wanted to.

@padolsey

This comment has been minimized.

Show comment
Hide comment
@padolsey

padolsey May 26, 2011

The worst offenders won't be affected by this though :( ... I'm talking of those who dare to encroach upon the sanctity of unaltered DOM/BOM prototypes. MOOTOOLS... PROTOTYPE... Those bastards.

The worst offenders won't be affected by this though :( ... I'm talking of those who dare to encroach upon the sanctity of unaltered DOM/BOM prototypes. MOOTOOLS... PROTOTYPE... Those bastards.

@nathansmith

This comment has been minimized.

Show comment
Hide comment
@nathansmith

nathansmith May 26, 2011

True. I mean, the DOM remains extended/polluted, but good luck trying to use the "getters" of $ or $$.

Which reminds me, added: $A, $F, $R, $w too. :)

Owner

nathansmith commented May 26, 2011

True. I mean, the DOM remains extended/polluted, but good luck trying to use the "getters" of $ or $$.

Which reminds me, added: $A, $F, $R, $w too. :)

@Harvie

This comment has been minimized.

Show comment
Hide comment
@Harvie

Harvie May 31, 2011

Nice. I can imagine this as Chromium or Firefox plugin (or bookmarklet at least) :-D

Harvie commented May 31, 2011

Nice. I can imagine this as Chromium or Firefox plugin (or bookmarklet at least) :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment