Fuck protocols.

Conflicts:
	LICENSE
	builds/4chan-X.user.js
	builds/crx/script.js
This commit is contained in:
Zixaphir 2014-03-22 12:32:06 -07:00
parent 4c09eed4cd
commit 228eba30fb
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.4.1 - 2014-03-21
* 4chan X - Version 1.4.1 - 2014-03-22
*
* Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript==
/*
* 4chan X - Version 1.4.1 - 2014-03-21
* 4chan X - Version 1.4.1 - 2014-03-22
*
* Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -8566,7 +8566,7 @@
range.setEnd(range.endContainer, range.endOffset - i);
}
}
if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) {
if (!/(mailto:|.+:\/\/)/.test(text)) {
text = (/@/.test(text) ? 'mailto:' : 'http://') + text;
}
a = $.el('a', {

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* 4chan X - Version 1.4.1 - 2014-03-21
* 4chan X - Version 1.4.1 - 2014-03-22
*
* Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -8581,7 +8581,7 @@
range.setEnd(range.endContainer, range.endOffset - i);
}
}
if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) {
if (!/(mailto:|.+:\/\/)/.test(text)) {
text = (/@/.test(text) ? 'mailto:' : 'http://') + text;
}
a = $.el('a', {

View File

@ -116,7 +116,7 @@ Linkify =
range.setEnd range.endContainer, range.endOffset - i
# Make our link 'valid' if it is formatted incorrectly.
unless /(https?|mailto|git|magnet|ftp|irc):/.test text
unless /(mailto:|.+:\/\/)/.test text
text = (
if /@/.test text
'mailto:'