changeset 80:86daedfccb43

Remove click event on the link itself
author nanaya <me@nanaya.pro>
date Sat, 03 Oct 2020 02:15:58 +0900
parents e4b970501e8e
children e30cd7fbee42
files pixiv-fanbox-unlazy.user.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pixiv-fanbox-unlazy.user.js	Thu Aug 06 19:41:24 2020 +0900
+++ b/pixiv-fanbox-unlazy.user.js	Sat Oct 03 02:15:58 2020 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         pixiv fanbox no lazy loading image
 // @namespace    https://myconan.net
-// @version      1.0.1
+// @version      2.0.0
 // @description  Lazy loading is bad for environment. Disable it.
 // @author       nanaya
 // @match        https://*.fanbox.cc/*
@@ -47,6 +47,7 @@
     }
     link._ecUserscript = true
 
+    link.onclick = null
     link.innerHTML = `<img style="width: 100%;" src="${href}" />`
   }