Mercurial > ec-userscripts
view surugaya-fixes.user.js @ 78:9dc1be1a6c7a
Bye image lazy loading on pixiv fanbox
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 06 Aug 2020 19:39:49 +0900 |
parents | 5a3a269c5e6f |
children | 86da34e62d29 |
line wrap: on
line source
// ==UserScript== // @name suruga-ya fixes // @namespace https://myconan.net // @version 1.0.1 // @description Show all products // @author nanaya // @match https://www.suruga-ya.jp/* // @grant none // @downloadURL https://hg.sr.ht/~nanaya/ec-userscripts/raw/surugaya-fixes.user.js?rev=tip // ==/UserScript== ;(function () { 'use strict' const hasAdultCookie = document.cookie.split('; ').includes('adult=1') if (hasAdultCookie) { return } const d = new Date() d.setTime(d.getTime() + (100 * 24 * 60 * 60 * 1000)) document.cookie = `adult=1; expires=${d.toGMTString()}; path=/` window.location.reload() }).call()