@ -25,7 +25,7 @@ var div_bpc_done = document.querySelector('div#bpc_done');
if ( ! div _bpc _done ) {
// listen to responses from background script
if ( ext _api . runtime && ( matchDomain ( [ 'belfasttelegraph.co.uk' , ' bostonglobe.com', ' independent.ie'] ) || window . location . hostname . match ( /\.(com|net)\.au$/ ) ) ) {
if ( ext _api . runtime && ( matchDomain ( [ 'belfasttelegraph.co.uk' , ' independent.ie'] ) || window . location . hostname . match ( /\.(com|net)\.au$/ ) ) ) {
ext _api . runtime . onMessage . addListener ( function ( message , sender ) {
// setCookie opt-in
if ( message . optIn ) {
@ -38,12 +38,7 @@ if (ext_api.runtime && (matchDomain(['belfasttelegraph.co.uk', 'bostonglobe.com'
if ( ! cookieExists ( 'subscribed' ) )
setCookie ( 'subscribed' , 'true' , domain , '/' , 14 ) ;
} else {
if ( matchDomain ( 'bostonglobe.com' ) ) {
if ( ! cookieExists ( 's_fid' ) ) {
let s _fid = genHexString ( 16 ) + '-' + genHexString ( 16 ) ;
setCookie ( 's_fid' , s _fid , 'bostonglobe.com' , '/' , 14 ) ;
}
} else if ( domain = matchDomain ( [ 'belfasttelegraph.co.uk' , 'independent.ie' ] ) ) {
if ( domain = matchDomain ( [ 'belfasttelegraph.co.uk' , 'independent.ie' ] ) ) {
if ( ! cookieExists ( 'subscriber' ) )
setCookie ( 'subscriber' , '{"subscriptionStatus": true}' , domain , '/' , 14 ) ;
if ( hostname . includes ( 'amp.' ) ) {
@ -1637,6 +1632,19 @@ else if (matchDomain('bloombergquint.com')) {
removeDOMElement ( articlesLeftModal , paywall ) ;
}
else if ( matchDomain ( 'bostonglobe.com' ) ) {
let paywall = document . querySelector ( 'div.meter-paywall' ) ;
if ( paywall ) {
removeDOMElement ( paywall ) ;
let body _hidden = document . querySelector ( 'body[style]' ) ;
if ( body _hidden )
body _hidden . removeAttribute ( 'style' ) ;
let continue _button = document . querySelector ( 'button.continue_button' ) ;
if ( continue _button )
continue _button . click ( ) ;
}
}
else if ( matchDomain ( 'business-standard.com' ) ) {
document . addEventListener ( 'DOMContentLoaded' , ( ) => {
let skip _button = document . querySelector ( 'a.btn_skip' ) ;