您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Skip shortener to gamesgx.net
当前为
- // ==UserScript==
- // @name GamesGX Downloader
- // @version 0.2
- // @namespace GamesGxDownloader
- // @description Skip shortener to gamesgx.net
- // @author GrrAmd2
- // @match https://eco-area.com/*
- // @match http://eco-area.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Obtener la parte de la URL después del dominio
- var entryPoint = window.location.pathname.split('/');
- // Comprobar si la parte después del dominio es "go"
- if (entryPoint[1] === "go") {
- // Hacer clic en el elemento con la clase 'linkprotect' si existe
- var linkProtectElement = document.querySelector('.linkprotect');
- if (linkProtectElement) {
- linkProtectElement.click();
- }
- } else {
- // Obtener el enlace de descarga del elemento con la clase 'botontour'
- var downloadLinkElement = document.querySelector(".botontour a");
- if (downloadLinkElement) {
- var url = downloadLinkElement.href;
- // Abrir la URL en una nueva pestaña
- window.open(url, "_blank");
- // Cerrar la pestaña actual después de un breve retraso (500 milisegundos)
- setTimeout(function() {
- window.close();
- }, 500);
- } else {
- console.error("No se encontró el elemento de enlace de descarga.");
- }
- }
- })();