Mercurial > ec-userscripts
changeset 81:e30cd7fbee42
Actually working
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 03 Oct 2020 02:21:56 +0900 |
parents | 86daedfccb43 |
children | 86da34e62d29 |
files | pixiv-fanbox-unlazy.user.js |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pixiv-fanbox-unlazy.user.js Sat Oct 03 02:15:58 2020 +0900 +++ b/pixiv-fanbox-unlazy.user.js Sat Oct 03 02:21:56 2020 +0900 @@ -1,7 +1,7 @@ // ==UserScript== // @name pixiv fanbox no lazy loading image // @namespace https://myconan.net -// @version 2.0.0 +// @version 2.0.1 // @description Lazy loading is bad for environment. Disable it. // @author nanaya // @match https://*.fanbox.cc/* @@ -47,7 +47,9 @@ } link._ecUserscript = true - link.onclick = null + link.addEventListener('click', (event) => { + event.stopPropagation() + }) link.innerHTML = `<img style="width: 100%;" src="${href}" />` }