-
Notifications
You must be signed in to change notification settings - Fork 0
/
ezline
42 lines (35 loc) · 1014 Bytes
/
ezline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ==UserScript==
// @name ezline
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 2ez4me
// @author You
// @match https://store.line.me/stickershop/product/*
// @grant GM_setClipboard
// ==/UserScript==
(function() {
'use strict';
//
try{
var p = [];
var a = $('span[class$=Image]');
if(a&&a.length){
var l = a.length;
for(var i = 0;i<l;i++){
var v = $(a[i]).attr('style');
console.log(v);
var r = (v.match(/\/[0-9]+\//))[0].replace(/\//g,'');
if(r){
p.push('https://stickershop.line-scdn.net/stickershop/v1/sticker/' + r + '/IOS/[email protected]');
}
}
if(p.length){
setTimeout(()=>{
document.getElementsByClassName('MdIcoPlay_b')[0].onclick = function(){ GM_setClipboard (p.join(',')); };
},1000);
}
}
}catch(e){
console.log(e);
}
})();