您需要先安装一个扩展,例如 篡改猴、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.1
- // @description Add download button for line sticker store
- // @description:zh-cn 在 LINE STORE Sticker 页面添加下载按钮
- // @author 空
- // @grant none
- // ==/UserScript==
- (function() {
- '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" style="list-style-type: none"><a href="' + link + '"';
- btn += 'class="MdBtn01 mdBtn01" style="background: #33b1ff">';
- btn += '<span class="mdBtn01Inner">';
- btn += '<span class="mdBtn01Txt">下载</span>';
- btn += '</span></a></li>';
- $(function () {
- if ($("div").hasClass("mdCMN08Txt")) {
- // remove gift
- var gift = document.getElementsByClassName('mdCMN08Ul')[0];
- gift.removeChild(gift.firstElementChild);
- gift.removeChild(gift.firstElementChild);
- $("div.mdCMN08Txt>ul").prepend(btn);
- }
- if ($("div").hasClass("mdMN05Btn")) {
- $("div.mdMN05Btn").prepend(btn);
- }
- });
- })();