rm $.slice
This commit is contained in:
parent
3d931acfe4
commit
8ffb7dfafa
10
4chan_x.js
10
4chan_x.js
@ -256,16 +256,6 @@
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
slice: function(arr, id) {
|
|
||||||
var el, i, _len;
|
|
||||||
for (i = 0, _len = arr.length; i < _len; i++) {
|
|
||||||
el = arr[i];
|
|
||||||
if (id === el.id) {
|
|
||||||
arr.splice(i, 1);
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
x: function(path, root) {
|
x: function(path, root) {
|
||||||
if (root == null) {
|
if (root == null) {
|
||||||
root = d.body;
|
root = d.body;
|
||||||
|
|||||||
@ -145,12 +145,6 @@ $.extend $,
|
|||||||
GM_getValue name, config[name][0]
|
GM_getValue name, config[name][0]
|
||||||
zeroPad: (n) ->
|
zeroPad: (n) ->
|
||||||
if n < 10 then '0' + n else n
|
if n < 10 then '0' + n else n
|
||||||
slice: (arr, id) ->
|
|
||||||
# do I actually need this?
|
|
||||||
for el, i in arr
|
|
||||||
if id == el.id
|
|
||||||
arr.splice i, 1
|
|
||||||
return arr
|
|
||||||
x: (path, root=d.body) ->
|
x: (path, root=d.body) ->
|
||||||
d.evaluate(path, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).
|
d.evaluate(path, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).
|
||||||
singleNodeValue
|
singleNodeValue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user