Fix Linkify in Chrome
Was skipping every other URL if they were on trailing lines
This commit is contained in:
parent
1640ef5da1
commit
9eda79c24c
@ -18,7 +18,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.25 - 2013-08-04
|
* 4chan X - Version 1.2.25 - 2013-08-05
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -4368,6 +4368,7 @@
|
|||||||
range.setEnd(node, len2);
|
range.setEnd(node, len2);
|
||||||
links.push(range);
|
links.push(range);
|
||||||
}
|
}
|
||||||
|
Linkify.regString.lastIndex = 0;
|
||||||
if (match) {
|
if (match) {
|
||||||
Linkify.seek(match, node, post);
|
Linkify.seek(match, node, post);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.25 - 2013-08-04
|
* 4chan X - Version 1.2.25 - 2013-08-05
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -4373,6 +4373,7 @@
|
|||||||
range.setEnd(node, len2);
|
range.setEnd(node, len2);
|
||||||
links.push(range);
|
links.push(range);
|
||||||
}
|
}
|
||||||
|
Linkify.regString.lastIndex = 0;
|
||||||
if (match) {
|
if (match) {
|
||||||
Linkify.seek(match, node, post);
|
Linkify.seek(match, node, post);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,6 +76,8 @@ Linkify =
|
|||||||
range.setEnd node, len2
|
range.setEnd node, len2
|
||||||
links.push range
|
links.push range
|
||||||
|
|
||||||
|
Linkify.regString.lastIndex = 0
|
||||||
|
|
||||||
if match
|
if match
|
||||||
Linkify.seek match, node, post
|
Linkify.seek match, node, post
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user