// ==UserScript== // @name Terabox Premium Unlocker // @namespace terabox.lovedolove // @version 1.0.4 // @description Enables all VIP (Premium) features on Terabox by simulating an active premium membership. // @match https://www.terabox.com/* // @match https://terabox.com/* // @match https://teraboxapp.com/* // @match https://terabox.link/* // @match https://1024tera.com/* // @match https://momerybox.com/* // @match https://nephobox.com/* // @match https://freeterabox.com/* // @match https://yartera.com/* // @require https://update.greasyfork.icu/scripts/455943/1270016/ajaxHooker.js // @icon https://greasyfork.s3.us-east-2.amazonaws.com/vtcn761um75q267xs2zgfsa9wlig // @homepage https://greasyfork.org/en/scripts/543870-terabox-premium-unlocker // @supportURL https://greasyfork.org/en/scripts/543870-terabox-premium-unlocker/feedback // @run-at document-start // @grant none // @license MIT // @downloadURL none // ==/UserScript== /* global ajaxHooker*/ (function () { "use strict"; // Auto-redirect to terabox.com from alternative domains const targetDomain = "www.terabox.com"; const currentHostname = location.hostname; const alternativeDomains = [ "teraboxapp.com", "terabox.link", "1024tera.com", "momerybox.com", "nephobox.com", "freeterabox.com", "yartera.com", ]; if (alternativeDomains.includes(currentHostname)) { const newUrl = location.href.replace(currentHostname, targetDomain); location.replace(newUrl); return; // Stop execution after redirect } // Hooking AJAX request to unlock premium ajaxHooker.hook((request) => { if (request.url.includes("/membership/proxy/user")) { request.response = (res) => { const json = JSON.parse(res.responseText); if (json.error_code === 0 && json.data) { let a = json.data.member_info; // Unlock VIP features a.is_vip = 1; a.vip_left_time = 9999999999; // Long duration for VIP a.vip_end_time = 9999999999; // Far future expiry a.vip_end_time_without_grace = 9999999999; a.can_cancel_renew = 1; a.is_auto_renew = 1; a.raw_price = 0; a.renew_price = 0; a.renew_time = 9999999999; a.show_grace_tips = 0; // Ensure support for VIP in country info json.data.cur_country.support_vip = 1; json.data.reg_country.support_vip = 1; // Modify reminder to avoid expiry warnings json.data.reminder.vip_expire_time = 9999999999; res.responseText = JSON.stringify(json); } }; } }); })();