Fix a small linkifier oversight
This commit is contained in:
parent
faa8ee63b0
commit
2f497d700a
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.30 - 2013-08-15
|
* 4chan X - Version 1.2.30 - 2013-08-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.30 - 2013-08-15
|
* 4chan X - Version 1.2.30 - 2013-08-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -4481,7 +4481,7 @@
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (link = Linkify.regString.exec(result[0])) {
|
if (link = Linkify.regString.exec(result[0])) {
|
||||||
range = Linkify.makeRange(node, node, index + link.index, length);
|
range = Linkify.makeRange(node, node, index, length);
|
||||||
links.push(range);
|
links.push(range);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.30 - 2013-08-15
|
* 4chan X - Version 1.2.30 - 2013-08-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -4490,7 +4490,7 @@
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (link = Linkify.regString.exec(result[0])) {
|
if (link = Linkify.regString.exec(result[0])) {
|
||||||
range = Linkify.makeRange(node, node, index + link.index, length);
|
range = Linkify.makeRange(node, node, index, length);
|
||||||
links.push(range);
|
links.push(range);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,7 +77,7 @@ Linkify =
|
|||||||
|
|
||||||
else
|
else
|
||||||
if link = Linkify.regString.exec result[0]
|
if link = Linkify.regString.exec result[0]
|
||||||
range = Linkify.makeRange node, node, index + link.index, length
|
range = Linkify.makeRange node, node, index, length
|
||||||
links.push range
|
links.push range
|
||||||
|
|
||||||
for range in links.reverse()
|
for range in links.reverse()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user