Fuck protocols.
Conflicts: LICENSE builds/4chan-X.user.js builds/crx/script.js
This commit is contained in:
parent
4c09eed4cd
commit
228eba30fb
2
LICENSE
2
LICENSE
@ -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
|
||||
|
||||
@ -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', {
|
||||
|
||||
@ -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', {
|
||||
|
||||
@ -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:'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user