And now that's gone.
This commit is contained in:
parent
c2bf431df6
commit
6692dd329b
10
LICENSE
10
LICENSE
@ -77,14 +77,4 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
* 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
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@ -97,16 +97,6 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
* 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';
|
'use strict';
|
||||||
|
|
||||||
@ -4548,7 +4538,9 @@
|
|||||||
range.setEnd(range.endContainer, range.endOffset - i);
|
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', {
|
a = $.el('a', {
|
||||||
className: 'linkify',
|
className: 'linkify',
|
||||||
rel: 'nofollow noreferrer',
|
rel: 'nofollow noreferrer',
|
||||||
|
|||||||
@ -78,16 +78,6 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
* 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';
|
'use strict';
|
||||||
|
|
||||||
@ -4557,7 +4547,9 @@
|
|||||||
range.setEnd(range.endContainer, range.endOffset - i);
|
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', {
|
a = $.el('a', {
|
||||||
className: 'linkify',
|
className: 'linkify',
|
||||||
rel: 'nofollow noreferrer',
|
rel: 'nofollow noreferrer',
|
||||||
|
|||||||
@ -77,14 +77,4 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
* 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
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@ -126,12 +126,9 @@ Linkify =
|
|||||||
if i
|
if i
|
||||||
range.setEnd range.endContainer, range.endOffset - i
|
range.setEnd range.endContainer, range.endOffset - i
|
||||||
|
|
||||||
# This is the only piece of code left based on Anthony Lieuallen's Linkify
|
unless /(https?|mailto|git|magnet|ftp|irc):/.test text
|
||||||
text =
|
text = (
|
||||||
if text.contains ':'
|
if /@/.test text
|
||||||
text
|
|
||||||
else (
|
|
||||||
if text.contains '@'
|
|
||||||
'mailto:'
|
'mailto:'
|
||||||
else
|
else
|
||||||
'http://'
|
'http://'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user