HackForums Reputations Link Clickable

Makes links surrounded by either whitespace or dots (periods) clickable.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name            HackForums Reputations Link Clickable
// @namespace       xerotic/clickreplink
// @description     Makes links surrounded by either whitespace or dots (periods) clickable.
// @include         http://hackforums.net/reputation.php*
// @include         http://www.hackforums.net/reputation.php*
// @version         1.0
// ==/UserScript==


document.getElementById('content').innerHTML=document.getElementById('content').innerHTML.replace(/\shttp\:\/\/(.*?)\s/g, " <a href='http://$1'>http://$1</a> ");
document.getElementById('content').innerHTML=document.getElementById('content').innerHTML.replace(/\.http\:\/\/(.*?)\s/g, ".<a href='http://$1'>http://$1</a> ");
document.getElementById('content').innerHTML=document.getElementById('content').innerHTML.replace(/\shttp\:\/\/(.*?)\./g, " <a href='http://$1'>http://$1</a>.");
document.getElementById('content').innerHTML=document.getElementById('content').innerHTML.replace(/\.http\:\/\/(.*?)\./g, ".<a href='http://$1'>http://$1</a>.");