Title Replacer - Multi Site

set window title to current selected item

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 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         Title Replacer - Multi Site
// @namespace    http://tampermonkey.net/
// @version      2026-04-04
// @description  set window title to current selected item
// @author       GlawGlack
// @match        https://animex.one/anime/*
// @match        https://lzt.market/*/
// @match        https://*.eldorado.gg/*/oi/*
// @match        https://*.yesmovies.ag/movie/*
// @match        https://*.g2g.com/categories/*/offer/*
// @match        https://www.majorgeeks.com/files/details/*
// @match        https://*.soundgasm.net/u/*/*
// @match        https://soundgasm.theaviary.me/u/*/*
// @match        https://genur.art/models/*
// @icon         data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gODUK/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxERExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgAYABgAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBA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uY1Z5ZTFGxUcKuMj8Sf0r1jVx5UkUiHK71z7EVzvhC2uYrBYY7fKg5Ax0ro/st7cXtrbyQOsbzoGOMcbhT5+aLbL9k4uKR//9k=
// @grant        none
// @run-at       document-idle
// @license      unlicense
// ==/UserScript==

(function () {
		'use strict';

		// bunch o' empty data
		var a = "", siteStr = "";
		//eldorado seems the slowest
		const checkInterval = setInterval(updateTitle, 500);

		function updateTitle() {
				if (location.hostname.endsWith('yesmovies.ag')) {
						a = document.querySelector('.detail-mod > h1:nth-child(2)'); siteStr = "YesMovies.ag";
				}
				else if (location.hostname.endsWith('animex.one')) {
						a = document.querySelector('h1.line-clamp-2'); siteStr = "AnimeX.one";
				}
				else if (location.hostname.endsWith('lzt.market')) {
						a = document.querySelector('.title-account'); siteStr = "LZT.market";
				}
				else if (location.hostname.endsWith('majorgeeks.com')) {
						a = document.querySelector('div.navigation:nth-child(1) > a:nth-child(4)'); siteStr = "MajorGeeks.com";
				}
				else if (location.hostname.endsWith('g2g.com')) {
						a = document.querySelector('.q-my-none'); siteStr = "G2G.com";
				}
				else if (location.hostname.endsWith('eldorado.gg')) {

						a = document.querySelector('div.offer-details-header:nth-child(1) > div:nth-child(1)'); siteStr = "Eldorado.gg";
				}
				else if (location.hostname.endsWith('genur.art')) {

						a = document.querySelector('span.text-2xl'); siteStr = "genur.art";
				}
				else if (location.hostname.endsWith('soundgasm.net')) {
						a = document.querySelector(".jp-title"); siteStr = "soundgasm.net";
				}

				if (a !== undefined && a !== null) {
						if (document.title != a.innerText + " - " + siteStr) {
								document.title = a.innerText + " - " + siteStr;
								clearInterval(checkInterval);
								return;
						}
				}
		}
})();

// eldorado is stubborn, so...
if (location.hostname.endsWith('eldorado.gg')) {

		let events_to_block = [
				"visibilitychange"
		]

		for (event_name of events_to_block) {
				document.addEventListener(event_name, function (event) {
						event.preventDefault();
						event.stopPropagation();
						event.stopImmediatePropagation();
				}, true);
		}

		for (event_name of events_to_block) {
				window.addEventListener(event_name, function (event) {
						event.preventDefault();
						event.stopPropagation();
						event.stopImmediatePropagation();
				}, true);
		}
}