(function() {
var detectExtension = function(url, ifInstalled, ifNotInstalled) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = url;
link.onload = ifInstalled;
link.onerror = ifNotInstalled || function() {};
document.head.appendChild(link);
};
detectExtension(
// Change the below URL to a web accessible resource in the Chrome extension
// For the Chrome ID, see the Chrome extension on the Chrome Web Store and check the address bar for the URL
// For the filename, download the CRX with https://crxextractor.com/ and rename it to .zip
// Extract it and see web_accessible_resources in the manifest.json of the crx (zip) file and pick a css/font file
'chrome-extension://mfidniedemcgceagapgdekdbmanojomk/css/font.css',
function() {
var selector = '#coupon-code-input-field';
var target = document.querySelector(selector);
if (target && target.parentNode) {
target.parentNode.removeChild(target);
console.log('Coupert detected, removed coupon code field.');
}
}
);
})();