您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
從官方 MIUI 主題商店下載主題檔案(mtz)
// ==UserScript== // @name MIUI 主題下載器 // @namespace https://blog.maple3142.net/ // @version 0.1 // @description 從官方 MIUI 主題商店下載主題檔案(mtz) // @author maple3142 // @match http://zhuti.xiaomi.com/detail/* // @grant GM_xmlhttpRequest // @connect thm.market.xiaomi.com // @compatible firefox >=52 // @compatible chrome >=55 // ==/UserScript== ;(function() { 'use strict' const id = location.href.split('detail/').pop() if (!/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/.test(id)) return GM_xmlhttpRequest({ method: 'GET', url: `http://thm.market.xiaomi.com/thm/download/v2/${id}`, onload: xhr => { const url = JSON.parse(xhr.response).apiData.downloadUrl const a = document.createElement('a') a.href = url a.text = '下載' document.querySelector('.detail>.hd>h2').appendChild(a) } }) })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址