view cuffs-hulotte-popup.user.js @ 38:1e6093682591

(none)
author Edho Arief <me@nanaya.pro>
date Thu, 20 Jul 2017 09:11:01 +0000
parents 300b54b0c956
children c994d0e076a3
line wrap: on
line source

// ==UserScript==
// @name         Cuffs/Hulotte popup disable
// @namespace    https://myconan.net
// @version      1.0.2
// @description  Strip out Cuffs/Hulotte age confirmation popup
// @author       nanaya
// @match        http://www.cuffs.co.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";

  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();