XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE === 6

This commit is contained in:
Zixaphir 2013-05-03 06:53:07 -07:00
parent 15fde83135
commit d657c958c1
5 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.1.9 - 2013-05-02
* 4chan X - Version 1.1.9 - 2013-05-03
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -18,7 +18,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan X - Version 1.1.9 - 2013-05-02
* 4chan X - Version 1.1.9 - 2013-05-03
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -529,7 +529,7 @@
$.X = function(path, root) {
root || (root = d.body);
return d.evaluate(path, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
return d.evaluate(path, root, null, 6, null);
};
$.addClass = function(el, className) {

View File

@ -18,7 +18,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan X - Version 1.1.9 - 2013-05-02
* 4chan X - Version 1.1.9 - 2013-05-03
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -526,7 +526,7 @@
$.X = function(path, root) {
root || (root = d.body);
return d.evaluate(path, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
return d.evaluate(path, root, null, 6, null);
};
$.addClass = function(el, className) {

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.1.9 - 2013-05-02
* 4chan X - Version 1.1.9 - 2013-05-03
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -507,7 +507,7 @@
$.X = function(path, root) {
root || (root = d.body);
return d.evaluate(path, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
return d.evaluate(path, root, null, 6, null);
};
$.addClass = function(el, className) {

View File

@ -133,7 +133,8 @@ $.x = (path, root) ->
$.X = (path, root) ->
root or= d.body
d.evaluate path, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null
# XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE === 6
d.evaluate path, root, null, 6, null
$.addClass = (el, className) ->
el.classList.add className