Posted November 04, 2018

If you'd rather want to modify the original Barefoot Essentials script, by "to the end" I meant after the last line of the original script (after the closing brackets):
...
// }
// check version, and show changelog if new
storage.get('last_BE_version', function(last_BE_version) {
if (last_BE_version === undefined) last_BE_version = default_prev_version
else if (settings.get('BE-show-changelog') !== false && cmpVersion(last_BE_version, version) < 0) {
popup.show('Changelog')
}
storage.set('last_BE_version', version)
})
})
}
$(window).on('DOMSubtreeModified', function() {
$(".product-tile:has(.product-tile__labels--in-library)").css("opacity", "0.25")
});
Either way your browser needs to support the DOMSubtreeModified event. You can check wether your browser supports it here: https://caniuse.com/#search=DOMSubtreeModified
Post edited November 04, 2018 by DaveBentfield