Bypass OnlineTools Paywall

Onlinetools.com recently implemented a paywall. This script bypasses it.

  1. // ==UserScript==
  2. // @name Bypass OnlineTools Paywall
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Onlinetools.com recently implemented a paywall. This script bypasses it.
  6. // @author Your Name
  7. // @match http*://onlinetools.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function removeCfcpCookies() {
  16. // Get all cookies for the current domain
  17. const cookies = document.cookie.split(';');
  18.  
  19. cookies.forEach(cookie => {
  20. const cookieName = cookie.split('=')[0].trim();
  21. if (cookieName.startsWith('cfcp')) {
  22. // Sets the cookie's expiration date to the past to remove it
  23. document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;`;
  24. }
  25. });
  26. }
  27.  
  28. removeCfcpCookies();
  29.  
  30. setInterval(removeCfcpCookies, 1000);
  31. })();