nl_tokens: Use plain Web API detection with standard selectors https : // developer . mozilla . org / en - US / docs / Web / Guide / CSS / Getting_Started / Selectors Returns true on element visibility
pl_tokens: function ( options ) { var result = false ; var <mask> = document . querySelector ( options . selector ) ; if ( el ) { // el must be an HTMLElement that is visible result = el . offsetWidth && el . offsetHeight ; } return result ; }