68
|
1 // ==UserScript==
|
|
2 // @name suruga-ya fixes
|
|
3 // @namespace https://myconan.net
|
82
|
4 // @version 1.0.2
|
68
|
5 // @description Show all products
|
|
6 // @author nanaya
|
|
7 // @match https://www.suruga-ya.jp/*
|
|
8 // @grant none
|
82
|
9 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/surugaya-fixes.user.js
|
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()
|