Turn Streamate Inbox Links into Actual Links

The links in the Streamate inbox don't use the HTML <a> element. They don't work properly, especially if you want to open links in new tabs. This script replaces their fake links with real ones.

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         Turn Streamate Inbox Links into Actual Links
// @namespace    https://greasyfork.org/en/users/870933
// @version      0.2
// @description  The links in the Streamate inbox don't use the HTML <a> element. They don't work properly, especially if you want to open links in new tabs. This script replaces their fake links with real ones.
// @author       LintillaTaylor
// @match        https://*.streamatemodels.com/smm/email/inbox/*
// @grant        none
// ==/UserScript==

var url

$('.inbox_mail_row').each(function(i) {
	$(this).attr("style", "cursor:auto;")
	url = $(this).attr("data-url");
	$('em', this).replaceWith(function(){
		return $("<a />").attr("href", url).append($(this).contents());
	});
});