您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Line Store Sticker Downloader.
当前为
// ==UserScript== // @name Line Store Sticker Downloader // @name:zh-TW Line Store 貼圖下載器 // @namespace com.sherryyue.linestickerstoredownloader // @version 0.4 // @description Line Store Sticker Downloader. // @description:ZH-TW Line Store 貼圖下載器。 // @author SherryYue // @copyright SherryYue // @license MIT // @match https://store.line.me/* // @supportURL [email protected] // @icon https://sherryyuechiu.github.io/card/images/logo/maskable_icon_x96.png // @require https://code.jquery.com/jquery-3.6.0.js // @require https://code.jquery.com/ui/1.13.1/jquery-ui.js // @supportURL "https://github.com/sherryyuechiu/GreasyMonkeyScripts/issues" // @homepage "https://github.com/sherryyuechiu/GreasyMonkeyScripts" // @grant GM_addStyle // ==/UserScript== (function () { let downloadImage = (url) => { var a = document.createElement('a'); a.href = url; a.download = url; document.body.appendChild(a); a.click(); document.body.removeChild(a); } let main = () => { $('.FnStickerPreviewItem').on("click", function () { let data = JSON.parse($(this).attr('data-preview')); let clearImageUrl = data.fallbackStaticUrl; downloadImage(clearImageUrl); console.warn('data', data) }); } function observerFallBack(mutations, obs) { if (!document.querySelector(".FnStickerPreviewItem")) return; setTimeout(main, 250); observer.disconnect(); } let observer = new MutationObserver(observerFallBack); observer.observe(document.querySelector("body"), { childList: true, subtree: true }); setTimeout(observerFallBack, 250); document.getElementsByTagName('head')[0].append( '<link ' + 'href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css" ' + ' type="text/css">' ); })();