您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
- // ==UserScript==
- // @name ! CurseTweaks [MC]
- // @version 4
- // @description try to take over the world!
- // @icon https://www.google.com/s2/favicons?domain=curseforge.com
- // @author Diegiwg
- // @exclude https://www.curseforge.com/minecraft/*/*/download/*
- // @exclude https://www.curseforge.com/minecraft/*/*/files/*
- // @match https://www.curseforge.com/minecraft/*
- // @run-at document-start
- // @grant unsafeWindow
- // @namespace https://greasyfork.org/users/45177
- // ==/UserScript==
- (function() {
- 'use strict';
- const curse = "https://www.curseforge.com/minecraft/mc-mods/"; var mcID; var checkURL = window.location.pathname;
- var down = checkURL.split('/')[4]; var urlALL = window.location.href; var index = urlALL.split('?')[0];
- if (down==='download'){
- function cookieREAD(cookieNAME) { var cname = ' ' + cookieNAME + '='; var cookies = document.cookie; if (cookies.indexOf(cname) == -1) { return mcID; } cookies = cookies.substr(cookies.indexOf(cname), cookies.length); if (cookies.indexOf(';') != -1) { cookies = cookies.substr(0, cookies.indexOf(';')); } cookies = cookies.split('=')[1]; return decodeURI(cookies);}
- location.replace(curse + checkURL.split('/')[3] + '/files/all?filter-game-version=' + cookieREAD('curseMC'));
- };
- setTimeout(function() {
- mcID = urlALL.split('=')[1];
- var data = new Date(9999,1,2);
- var finalDATA = data.toGMTString();
- document.cookie = 'curseMC='+ mcID + '; expires=' + finalDATA + '; path=/';
- }, (1 * 1000));
- })();