/* globals self, bufferpm, chrome */
//  buffer-tpc-check.js
//  (c) 2013 Sunil Sadasivan
//  Check if third party cookies are disabled
//

;(function () {

  if (window !== window.top) return;

  ;(function check() {
    if((self.port) || (xt && xt.options)) {
      //if the 3rd party cookies check is disabled, store it
      bufferpm.bind("buffer_3pc_disabled", function(){
        if(xt && xt.options) {
          xt.options['buffer.op.tpc-disabled'] = true;
        }
        self.port.emit('buffer_tpc_disabled');
        return false;
      });

      var iframe = document.createElement('iframe');
      iframe.id = 'buffer_tpc_check';
      iframe.src = xt.data.get('data/shared/tpc-check.html');
      iframe.style.display="none";
      document.body.appendChild(iframe);
    } else {
      setTimeout(check, 50);
    }
  }());

}());

/* globals self, bufferpm, chrome */
//  buffer-tpc-check.js
//  (c) 2013 Sunil Sadasivan
//  Check if third party cookies are disabled
//

;(function () {

  if (window !== window.top) return;

  ;(function check() {
    if((self.port) || (xt && xt.options)) {
      //if the 3rd party cookies check is disabled, store it
      bufferpm.bind("buffer_3pc_disabled", function(){
        if(xt && xt.options) {
          xt.options['buffer.op.tpc-disabled'] = true;
        }
        self.port.emit('buffer_tpc_disabled');
        return false;
      });

      var iframe = document.createElement('iframe');
      iframe.id = 'buffer_tpc_check';
      iframe.src = xt.data.get('data/shared/tpc-check.html');
      iframe.style.display="none";
      iframe.setAttribute('data-info', 'The Buffer extension uses this iframe to automatically ' +
        'detect the browser\'s third-party cookies settings and offer the best experience based on those');
      document.body.appendChild(iframe);
    } else {
      setTimeout(check, 50);
    }
  }());

}());

Add info inside TPC check iframe attribute for curious eyes
Add info inside TPC check iframe attribute for curious eyes
