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.

Version vom 30.01.2022. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Turn Streamate Inbox Links into Actual Links
// @namespace    https://greasyfork.org/en/users/870933
// @version      0.1
// @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://www.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());
	});
});