view cuffs-hulotte-popup.user.js @ 42:456614d0a9ca

Remove lightbox as well Change indentation to 4
author nanaya <me@nanaya.pro>
date Thu, 27 Jul 2017 21:25:33 +0900
parents 1ca21c3adcf0
children f52f5727818f
line wrap: on
line source

// ==UserScript==
// @name         Cuffs/Hulotte tuning
// @namespace    https://myconan.net
// @version      1.0.7
// @description  Strip out Cuffs/Hulotte age confirmation popup, disables lightbox
// @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";

    var $ = jQuery;

    if (document.querySelector('body > #mainContent') != null) {
        var styleEl = document.createElement('style');
        document.head.appendChild(styleEl);
        var styleSheet = styleEl.sheet;

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

    $(function () {
        $('.cboxElement').removeClass('cboxElement');
    });
}).call();