Bypass 18+

Bypass 18+ checking forever

2021-03-07 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Bypass 18+
// @description  Bypass 18+ checking forever
// @namespace    https://github.com/FlandreDaisuki
// @version      1.1.0
// @author       FlandreDaisuki
// @match        *://www.amazon.co.jp/*
// @match        *://gyutto.com/*
// @match        *://www.dlsite.com/*
// @match        *://ec.toranoana.jp/*
// @match        *://www.ptt.cc/*
// @match        *://www.melonbooks.co.jp/*
// @match        *://www.suruga-ya.jp/*
// @match        *://www.javlibrary.com/*
// @run-at       document-start
// @grant        none
// @noframes
// ==/UserScript==

/* cSpell:ignore gyutto dlsite toranoana melonbooks javlibrary */
/* cSpell:ignore adflg adultchecked adalt suruga uniqid */
/* eslint-disable no-unused-expressions */

class CookieBuilder {
  constructor(k, v) {
    this['🍪'] = new Map([[k, v]]);
    this['🚗'] = true;
  }
  expires() {
    this['🍪'].set('expires', new Date('2345-06-07T00:00:00').toGMTString());
    return this;
  }
  path(t = '/') {
    this['🍪'].set('path', t);
    return this.noPath();
  }
  noPath() {
    this['🚗'] = false;
    return this;
  }
  domain(t) {
    this['🍪'].set('domain', t);
    return this;
  }
  toString() {
    this.expires();
    if (this['🚗']) {
      this.path();
    }
    return [...this['🍪']].map((p) => p.join('=')).join('; ');
  }
  get ['⏰']() {
    document.cookie = this.toString();
    return 0;
  }
}

(() => {
  const bake = (...args) => new CookieBuilder(...args);
  const cookieMap = document.cookie.split('; ')
    .reduce((c, s) => {
      const i = s.indexOf('=');
      c.set(s.slice(0, i), s.slice(i + 1));
      return c;
    }, new Map());

  switch (location.host) {
  case 'www.amazon.co.jp':
  {
    const t = cookieMap.get('csm-hit');
    if (t) {
      bake('csm-hit', t)['⏰'];
    }
    break;
  }
  case 'gyutto.com':
    bake('adult_check_flag', 1).domain('gyutto.com')['⏰'];
    bake('user_agent_flag', 1).domain('gyutto.com')['⏰'];
    break;
  case 'www.dlsite.com':
    bake('adultchecked', 1).domain('dlsite.com')['⏰'];
    bake('uniqid', '0.00000000000').domain('dlsite.com')['⏰'];
    break;
  case 'ec.toranoana.jp':
    bake('adflg', 0).domain('ec.toranoana.jp')['⏰'];
    break;
  case 'www.ptt.cc':
    bake('over18', 1)['⏰'];
    break;
  case 'www.melonbooks.co.jp':
    bake('AUTH_ADULT', 1)['⏰'];
    break;
  case 'www.suruga-ya.jp':
    bake('adult', 1)['⏰'];
    break;
  case 'www.javlibrary.com':
    bake('over18', 18)['⏰'];
    break;
  default:
    break;
  }
})();