Lovoo Profile Helper

Open Lovoo profiles in a new tab, even restricted ones. | Ouvrez les profils Lovoo dans un nouvel onglet, même ceux restreints. | Abra perfiles de Lovoo en una nueva pestaña, incluso los restringidos. | Öffnen Sie Lovoo-Profile in einem neuen Tab, auch eingeschränkte. | Открывайте профили Lovoo в новой вкладке, даже ограниченные. | 打开 Lovoo 个人资料,即使是受限制的,也可以在新选项卡中打开。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Lovoo Profile Helper
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Open Lovoo profiles in a new tab, even restricted ones. | Ouvrez les profils Lovoo dans un nouvel onglet, même ceux restreints. | Abra perfiles de Lovoo en una nueva pestaña, incluso los restringidos. | Öffnen Sie Lovoo-Profile in einem neuen Tab, auch eingeschränkte. | Открывайте профили Lovoo в новой вкладке, даже ограниченные. | 打开 Lovoo 个人资料,即使是受限制的,也可以在新选项卡中打开。
// @author       Manu OVG
// @icon         https://www.tempsdimages.eu/wp-content/uploads/2019/09/logo-lovoo.png
// @match        https://fr.lovoo.com/*
// @match        https://en.lovoo.com/*
// @match        https://es.lovoo.com/*
// @match        https://de.lovoo.com/*
// @match        https://ru.lovoo.com/*
// @match        https://cn.lovoo.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Add click listener to handle profile opening
    document.addEventListener('click', function(e) {
        const target = e.target.closest('.user-image.user-userpic'); // Select the clicked element
        if (target) {
            // Attempt to capture the direct URL
            const profileUrl = target.closest('a')?.href || null;
            if (profileUrl) {
                window.open(profileUrl, '_blank'); // Open the profile directly
            } else {
                alert('Could not find the direct profile URL. The profile may have special restrictions.');
            }
        }
    });
})();