view cuffs-hulotte-popup.user.js @ 41:1ca21c3adcf0

Add more sites
author nanaya <me@nanaya.pro>
date Fri, 21 Jul 2017 19:18:31 +0900
parents 23c1810da164
children 456614d0a9ca
line wrap: on
line source

// ==UserScript==
// @name         Cuffs/Hulotte popup disable
// @namespace    https://myconan.net
// @version      1.0.5
// @description  Strip out Cuffs/Hulotte age confirmation popup
// @author       nanaya
// @match        http://www.cuffs.co.jp/*
// @match        http://www.cuffs-cube.jp/*
// @match        http://hulotte.jp/*
// @grant        none
// @downloadURL  https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js
// ==/UserScript==

;(function() {
  "use strict";

  if (document.querySelector('body > #mainContent') == null) {
    return;
  }

  var styleEl = document.createElement('style');
  document.head.appendChild(styleEl);
  var styleSheet = styleEl.sheet;

  styleSheet.insertRule(
    'body > :not(#mainContent) { display: none !important; }',
    styleSheet.cssRules.length
  );
}).call();