Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- function checkCoupon() {
- var exceptionElement = document.querySelector('div[data-productid="19338"]');
- if (exceptionElement && exceptionElement.textContent.indexOf('כסא גיימינג XP1') != -1) {
- return null;
- }
- var isShowed = window.sessionStorage.getItem('showed_indegame');
- var couponElement = document.querySelector('.discount_0-total .title > span');
- if (!isShowed && couponElement && couponElement.textContent.indexOf('indegame') != -1) {
- adoric.trigger('show_indegame');
- window.sessionStorage.setItem('showed_indegame', true);
- }
- };
- checkCoupon();
- document.querySelector('body').addEventListener('click', function(event){
- if (adoric && (event.target.matches(".apply") || event.target.parentNode.matches(".apply"))) {
- setTimeout(checkCoupon, 1000);
- setTimeout(checkCoupon, 2000);
- }
- });
- })();
- </script>
Add Comment
Please, Sign In to add comment