68
|
1 // ==UserScript==
|
|
2 // @name suruga-ya fixes
|
|
3 // @namespace https://myconan.net
|
77
|
4 // @version 1.0.1
|
68
|
5 // @description Show all products
|
|
6 // @author nanaya
|
|
7 // @match https://www.suruga-ya.jp/*
|
|
8 // @grant none
|
77
|
9 // @downloadURL https://hg.sr.ht/~nanaya/ec-userscripts/raw/surugaya-fixes.user.js?rev=tip
|
68
|
10 // ==/UserScript==
|
|
11
|
|
12 ;(function () {
|
|
13 'use strict'
|
|
14
|
|
15 const hasAdultCookie = document.cookie.split('; ').includes('adult=1')
|
|
16
|
|
17 if (hasAdultCookie) {
|
|
18 return
|
|
19 }
|
|
20
|
|
21 const d = new Date()
|
|
22 d.setTime(d.getTime() + (100 * 24 * 60 * 60 * 1000))
|
|
23 document.cookie = `adult=1; expires=${d.toGMTString()}; path=/`
|
|
24 window.location.reload()
|
|
25 }).call()
|