您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
一键跳转到CourseForge,全速下载模组!
当前为
// ==UserScript== // @name Mcmod下载搜索脚本 // @namespace https://blog.csdn.net/Huuc6 // @version 0.1 // @description 一键跳转到CourseForge,全速下载模组! // @author huuc // @match *://www.mcmod.cn/class/* // @icon https://utool-picbed-1304937021.cos.ap-nanjing.myqcloud.com/MachineLearning/1621152891017.png // @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js // @grant GPL-2.0 // ==/UserScript== (function() { 'use strict'; //本脚本通过读取模组页面英文名,跳转到https://files.xmdhs.top/curseforge进行搜索,简单方便 $('.common-link-icon-frame-style-3:last').append('<li><a id="addition" data-toggle="tooltip" data-original-title="FakeCurseForge" target="_blank" rel="nofollow noreferrer" href="#"><svg class="common-mcicon common-linkicon common-linkicon-github" aria-hidden="true"><use xlink:href="#common-icon-link"></use></svg></a><span title="FakeCurseForge" class="name">FakeCourseForge</span></li>') let ModName = $('.class-title h4').text() let trueurl = 'https://files.xmdhs.top/curseforge/s?q='+ ModName // 注意,此处不能用www.baidu.com这样的url,必须用//baidu.com这样的形式 $('#addition').attr("href",trueurl) })();