您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add download button for line sticker store
当前为
- // ==UserScript==
- // @name LINE Sticker Download
- // @name:zh-CN LINE Sticker Download
- // @namespace https://veltlion.github.io/line-sticker-download
- // @include https://store.line.me/stickershop/product/*
- // @version 1.0
- // @description Add download button for line sticker store
- // @description:zh-cn 在 LINE STORE Sticker 页面添加下载按钮
- // @author 空
- // @grantnone
- // ==/UserScript==
- 'use strict';
- var id = window.location.pathname.replace(/[^\d]/g, '');
- var link = 'http://dl.stickershop.line.naver.jp/products/0/0/1/' + id + '/iphone/stickers@2x.zip';
- var btn = '<li class="mdCMN08Li"><a href="' + link + '"class="MdBtn01 mdBtn01" style="background: #33b1ff">';
- btn += '<span class="mdBtn01Inner">';
- btn += '<span class="mdBtn01Txt">下载</span>';
- btn += '</span></a></li>';
- // remove gift
- var gift = document.getElementsByClassName('mdCMN08Ul')[0];
- gift.removeChild(gift.firstElementChild);
- var btn_ul = $("div.mdCMN08Txt>ul");
- btn_ul.prepend(btn);