code: function() {
        var ad = React.findDOMNode(this.refs.fakeAd)
  
        if (ad) {
          if (window.document.body.getAttribute('abp') !== null ||
          ad.offsetParent === null || ad.offsetHeight === 0 ||
          ad.offsetLeft === 0 || ad.offsetTop === 0 ||
          ad.offsetWidth === 0 || ad.clientHeight === 0 ||
          ad.clientWidth === 0) {
            this.setState({ adBlock: true })
          }
  
          if (window.getComputedStyle !== undefined) {
            var adStyles = window.getComputedStyle(ad, null)
  
            if (adStyles.getPropertyValue('display') == 'none' ||
            adStyles.getPropertyValue('visibility') == 'hidden') {
              this.setState({ adBlock: true })
            }
          }
        }
      }
docs: FuckAdBlock 3.1.1 Copyright (c) 2015 Valentin Allaire <valentin.allaire@sitexw.fr> Released under the MIT license https://github.com/sitexw/FuckAdBlock