mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-29 16:33:02 +05:00
minor fix to bypass.city linkifier
This commit is contained in:
parent
2970c5fc0e
commit
9fe2abf79c
2 changed files with 2 additions and 2 deletions
|
@ -1785,7 +1785,7 @@
|
||||||
|
|
||||||
function makeUrlClickable(element) {
|
function makeUrlClickable(element) {
|
||||||
let url = element.textContent.match(/(https?:\/\/\S+)/)[0];
|
let url = element.textContent.match(/(https?:\/\/\S+)/)[0];
|
||||||
if (url && isValidUrl(url)) {
|
if (url && isValidUrl(url) && !url.endsWith('...')) {
|
||||||
let link = document.createElement('a'); link.href = url; link.textContent = url;
|
let link = document.createElement('a'); link.href = url; link.textContent = url;
|
||||||
element.innerHTML = element.innerHTML.replace(url, link.outerHTML);
|
element.innerHTML = element.innerHTML.replace(url, link.outerHTML);
|
||||||
return url;
|
return url;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
function makeUrlClickable(element) {
|
function makeUrlClickable(element) {
|
||||||
let url = element.textContent.match(/(https?:\/\/\S+)/)[0];
|
let url = element.textContent.match(/(https?:\/\/\S+)/)[0];
|
||||||
if (url && isValidUrl(url)) {
|
if (url && isValidUrl(url) && !url.endsWith('...')) {
|
||||||
let link = document.createElement('a'); link.href = url; link.textContent = url;
|
let link = document.createElement('a'); link.href = url; link.textContent = url;
|
||||||
element.innerHTML = element.innerHTML.replace(url, link.outerHTML);
|
element.innerHTML = element.innerHTML.replace(url, link.outerHTML);
|
||||||
return url;
|
return url;
|
||||||
|
|
Loading…
Reference in a new issue