Skip to content

Instantly share code, notes, and snippets.

@LeeXun
Last active November 1, 2017 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeeXun/6c0bb02f854703e4b81766ee78081f88 to your computer and use it in GitHub Desktop.
Save LeeXun/6c0bb02f854703e4b81766ee78081f88 to your computer and use it in GitHub Desktop.
/*
* 2017/10/31 Happy Helloween
* Author: LeeXun leexun.official@gmail.com
* Just copy and paste it on console
* Notice: It's really dangerous if you don't know that this means!
*
*/
function handleNewElement() {
var nodeList = document.getElementById('js_1').querySelectorAll("[aria-label='貼圖']");
var s = nodeList[nodeList.length-1].style;
s.width = "150px"
s.height = "129px"
s.background = "url('https://stickershop.line-scdn.net/stickershop/v1/sticker/1802683/android/sticker.png;compress=true')"
s.backgroundPosition = "center"
s.backgroundSize = "contain"
s.backgroundRepeat = "no-repeat"
}
document.getElementById('js_1').addEventListener('DOMNodeInserted', handleNewElement, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment