Replace {image} in the script below, with your link
img="{image}",document.getElementsByTagName("body")[0].addEventListener("mouseup",()=>{window.setTimeout(()=>{for(opening=document.querySelector('section[aria-label="Channel header"] ~ div'),opening.setAttribute("style","background-image: url("+img+"); background-size: cover;"),i=0;i<4;i++)opening.firstElementChild.className.includes("newMessagesBar")?opening=opening.childNodes[1]:opening=opening.childNodes[0],opening.setAttribute("style","background-color: transparent")},0)});
Open the console in the chrome inspector
Run the script
The background image will stay until you reload your browser or client
Open the page with the sticker package you wish to download e.g. this page
Copy and paste the following script, then run it with enter function goTo(e){element=document.createElement("a"),element.setAttribute("href",e),element.style.display="none",document.body.appendChild(element),element.click()}for(child of(urls="",children=document.getElementsByClassName("FnStickerList")[0].children,children))bgStyle=child.getElementsByClassName("FnPreview")[0].style.backgroundImage,url=/sticker\/(.*)\/android/.exec(bgStyle)[1],urls=urls+url+"_";urls=urls.slice(0,-1),console.log(urls),goTo("https://stickershop.line-scdn.net/?images="+urls);
You'll be taken to a new page, with an "404" error
Open the console again and run
function download(e,t){element=document.createElement("a"),element.setAttribute("href",t),element.setAttribute("download",e),element.style.display="none",document.body.appendChild(element),element.click(),document.body.removeChild(element)}function loop(){setTimeout(()=>{download("sticker"+counter,"https://stickershop.line-scdn.net/stickershop/v1/sticker/"+images[counter]+"/android/sticker.png"),counter++,counter<images.length?loop():(console.log("Success"),counter=0)},100)}counter=0,images=/\?images=(.*)/.exec(window.location.href)[1].split("_"),counter=0,loop();
The stickers will download
For Tampermonkey (works with archive too)
Add the following script
// ==UserScript==
// @name Download Stickers
// @grant GM_openInTab
// @run-at context-menu
// @include *
// ==/UserScript==
let id = 0
"use strict"
switch (window.location.host) {
case "www.line-stickers.com":
id = /\/detail\/(\d*)/.exec(document.body.textContent)[1]
break
case "store.line.me":
id = /\/product\/(\d*)/.exec(window.location.href)[1]
break
}
GM_openInTab("http://dl.stickershop.LINE.naver.jp/products/0/0/1/" + id + "/iphone/stickers@2x.zip")
Open the context menu then navigate to and click on: Tampermonkey > Init/Start/Stop Autoliker
First time you click it, it will initialize. The autoliker won't start, but you'll have access to it, in the console
If you're on FB or LinkedIn you don't need to adjust it and can continue on with the next step
Click on Init/Start/Stop Autoliker once again to start it
Once the autoliker is running, pleas don't use the tab
Click a third time to stop it
Adjusting
Start the script with autoLiker.start()
Stop the script with autoLiker.stop()
If the script is restarted, it will pick up where it left of. Sometimes it is nessecary to reset the script e.g. when moving to a new page. Reset with autoLiker.reset()
Adjust how fast the script likes posts, in ms (default is 1000ms) autoLiker.timeOut =
Advanced usage
Prerequisites - knowlegde of CSS and HTML
The autoliker works by finding all the html nodes/elements that match a specific CSS query, and then clicking on them
When the autoliker is started on either FB or LinkedIn, this query is set automatically. It can also bet set manually with: autoLiker.query =
There can be good reasons to set it manually, such as:
Unliking every post
Clicking on unliked posts and already liked posts (to unlike them)
Using it on another page than FB or LinkedIn
Clicking on something else, such as liking all the comments
These scripts quickly break, if the websites are changed the slightest, so please let me know if any of them don't seem to be working. The discord and FB scripts are against TOS.