Remove $.globalEval and include sys.4chan.org.

This commit is contained in:
Nicolas Stepien 2011-12-31 04:28:58 +01:00
parent d4cffe79a0
commit 3e0b957ada
3 changed files with 0 additions and 15 deletions

View File

@ -7,7 +7,6 @@
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*
// @include http://images.4chan.org/*
// @include http://sys.4chan.org/*
// @run-at document-start
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
@ -306,14 +305,6 @@
id: function(id) {
return d.getElementById(id);
},
globalEval: function(code) {
var script;
script = $.el('script', {
textContent: "(" + code + ")()"
});
$.add(d.head, script);
return $.rm(script);
},
ajax: function(url, cb, opts) {
var event, headers, key, r, type, val;
if (opts == null) opts = {};

View File

@ -14,7 +14,6 @@ HEADER = """
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*
// @include http://images.4chan.org/*
// @include http://sys.4chan.org/*
// @run-at document-start
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif

View File

@ -222,11 +222,6 @@ $.extend = (object, properties) ->
$.extend $,
id: (id) ->
d.getElementById id
globalEval: (code) ->
script = $.el 'script',
textContent: "(#{code})()"
$.add d.head, script
$.rm script
ajax: (url, cb, opts={}) ->
{type, event, headers} = opts
type or= 'get'