And now that's gone.

This commit is contained in:
Zixaphir 2013-08-17 05:41:27 -07:00
parent c2bf431df6
commit 6692dd329b
5 changed files with 9 additions and 48 deletions

10
LICENSE
View File

@ -77,14 +77,4 @@
* All rights reserved.
*
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
*
* Linkify: (http://userscripts.org/scripts/show/1352)
* Copyright (c) 2011, Anthony Lieuallen
* All rights reserved.
* Originally written by Anthony Lieuallen of http://arantius.com/
* Licensed for unlimited modification and redistribution as long as
* this notice is kept intact.
*
* license: http://userscripts.org/scripts/review/1352
*
*/

View File

@ -97,16 +97,6 @@
* All rights reserved.
*
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
*
* Linkify: (http://userscripts.org/scripts/show/1352)
* Copyright (c) 2011, Anthony Lieuallen
* All rights reserved.
* Originally written by Anthony Lieuallen of http://arantius.com/
* Licensed for unlimited modification and redistribution as long as
* this notice is kept intact.
*
* license: http://userscripts.org/scripts/review/1352
*
*/
'use strict';
@ -4548,7 +4538,9 @@
range.setEnd(range.endContainer, range.endOffset - i);
}
}
text = text.contains(':') ? text : (text.contains('@') ? 'mailto:' : 'http://') + text;
if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) {
text = (/@/.test(text) ? 'mailto:' : 'http://') + text;
}
a = $.el('a', {
className: 'linkify',
rel: 'nofollow noreferrer',

View File

@ -78,16 +78,6 @@
* All rights reserved.
*
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
*
* Linkify: (http://userscripts.org/scripts/show/1352)
* Copyright (c) 2011, Anthony Lieuallen
* All rights reserved.
* Originally written by Anthony Lieuallen of http://arantius.com/
* Licensed for unlimited modification and redistribution as long as
* this notice is kept intact.
*
* license: http://userscripts.org/scripts/review/1352
*
*/
'use strict';
@ -4557,7 +4547,9 @@
range.setEnd(range.endContainer, range.endOffset - i);
}
}
text = text.contains(':') ? text : (text.contains('@') ? 'mailto:' : 'http://') + text;
if (!/(https?|mailto|git|magnet|ftp|irc):/.test(text)) {
text = (/@/.test(text) ? 'mailto:' : 'http://') + text;
}
a = $.el('a', {
className: 'linkify',
rel: 'nofollow noreferrer',

View File

@ -77,14 +77,4 @@
* All rights reserved.
*
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
*
* Linkify: (http://userscripts.org/scripts/show/1352)
* Copyright (c) 2011, Anthony Lieuallen
* All rights reserved.
* Originally written by Anthony Lieuallen of http://arantius.com/
* Licensed for unlimited modification and redistribution as long as
* this notice is kept intact.
*
* license: http://userscripts.org/scripts/review/1352
*
*/

View File

@ -126,12 +126,9 @@ Linkify =
if i
range.setEnd range.endContainer, range.endOffset - i
# This is the only piece of code left based on Anthony Lieuallen's Linkify
text =
if text.contains ':'
text
else (
if text.contains '@'
unless /(https?|mailto|git|magnet|ftp|irc):/.test text
text = (
if /@/.test text
'mailto:'
else
'http://'