Remove $.globalEval and include sys.4chan.org.
This commit is contained in:
parent
d4cffe79a0
commit
3e0b957ada
@ -7,7 +7,6 @@
|
|||||||
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
||||||
// @include http://boards.4chan.org/*
|
// @include http://boards.4chan.org/*
|
||||||
// @include http://images.4chan.org/*
|
// @include http://images.4chan.org/*
|
||||||
// @include http://sys.4chan.org/*
|
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
|
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
|
||||||
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
||||||
@ -306,14 +305,6 @@
|
|||||||
id: function(id) {
|
id: function(id) {
|
||||||
return d.getElementById(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) {
|
ajax: function(url, cb, opts) {
|
||||||
var event, headers, key, r, type, val;
|
var event, headers, key, r, type, val;
|
||||||
if (opts == null) opts = {};
|
if (opts == null) opts = {};
|
||||||
|
|||||||
1
Cakefile
1
Cakefile
@ -14,7 +14,6 @@ HEADER = """
|
|||||||
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
||||||
// @include http://boards.4chan.org/*
|
// @include http://boards.4chan.org/*
|
||||||
// @include http://images.4chan.org/*
|
// @include http://images.4chan.org/*
|
||||||
// @include http://sys.4chan.org/*
|
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
|
// @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js
|
||||||
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
// @icon http://mayhemydg.github.com/4chan-x/favicon.gif
|
||||||
|
|||||||
@ -222,11 +222,6 @@ $.extend = (object, properties) ->
|
|||||||
$.extend $,
|
$.extend $,
|
||||||
id: (id) ->
|
id: (id) ->
|
||||||
d.getElementById id
|
d.getElementById id
|
||||||
globalEval: (code) ->
|
|
||||||
script = $.el 'script',
|
|
||||||
textContent: "(#{code})()"
|
|
||||||
$.add d.head, script
|
|
||||||
$.rm script
|
|
||||||
ajax: (url, cb, opts={}) ->
|
ajax: (url, cb, opts={}) ->
|
||||||
{type, event, headers} = opts
|
{type, event, headers} = opts
|
||||||
type or= 'get'
|
type or= 'get'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user