您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bypass AnonyViet link redirection
当前为
// ==UserScript== // @name AnonyViet Link Bypass // @namespace http://tampermonkey.net/ // @version 0.2 // @description Bypass AnonyViet link redirection // @author Yuusei // @match https://anonyviet.com/tieptucdentrangmoi/* // @icon https://www.google.com/s2/favicons?sz=64&domain=anonyviet.com // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; function extractGoogleDriveLink(url) { // Handle both "view" and "edit" URLs const match = url.match(/\/d\/([^\/]+)\/(view|edit)/); if (match) { return `https://drive.google.com/uc?id=${match[1]}&export=download`; } return url; // Return original URL if no match } let encodedUrl = document.getElementById('target-link')?.dataset.targetLink; if (encodedUrl) { let decodedUrl = atob(encodedUrl); window.location.href = extractGoogleDriveLink(decodedUrl); } else { let directLink = document.querySelector('.linkdown a'); if (directLink) { window.location.href = extractGoogleDriveLink(directLink.href); } } })();