From 3e0b957ada2ffd1adc22289794b25651930941a1 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 31 Dec 2011 04:28:58 +0100 Subject: [PATCH] Remove $.globalEval and include sys.4chan.org. --- 4chan_x.user.js | 9 --------- Cakefile | 1 - script.coffee | 5 ----- 3 files changed, 15 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 46968442a..ec819c88f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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 = {}; diff --git a/Cakefile b/Cakefile index 195cbb959..4fe228540 100644 --- a/Cakefile +++ b/Cakefile @@ -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 diff --git a/script.coffee b/script.coffee index 171b3a78c..2f28c82f6 100644 --- a/script.coffee +++ b/script.coffee @@ -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'