Suppress BetterJsPop

Prevent popunders on Leolist

질문, 리뷰하거나, 이 스크립트를 신고하세요.
  1. // ==UserScript==
  2. // @name Suppress BetterJsPop
  3. // @version 0.1.0
  4. // @description Prevent popunders on Leolist
  5. // @author salad: https://greasyfork.org/en/users/241444-salad
  6. // @include https://www.leolist.cc/*
  7. // @namespace https://greasyfork.org/users/241444
  8. // ==/UserScript==
  9.  
  10. (function() {
  11.  
  12. let BJSCookie = 'BetterJsPop0=1';
  13.  
  14. let cookies = document.cookie.split('; ');
  15.  
  16. let hasBJSCookie = cookies.includes(BJSCookie);
  17.  
  18. if(!hasBJSCookie) {
  19. document.cookie = `${BJSCookie}; expires=2021-03-11T20:38:13.742Z`;
  20. }
  21.  
  22. })();