silexy

EatCookiesAndRefresh

Aug 7th, 2021 (edited)
740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* paste as bookmarklet */
  2. javascript: (function() {
  3.     var cookies = document.cookie.split("; ");
  4.     for (var c = 0; c < cookies.length; c++) {
  5.         var d = window.location.hostname.split(".");
  6.         while (d.length > 0) {
  7.             var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + "=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=" + d.join(".") + " ;path=";
  8.             var p = location.pathname.split("/");
  9.             document.cookie = cookieBase + "/";
  10.             while (p.length > 0) {
  11.                 document.cookie = cookieBase + p.join("/");
  12.                 p.pop();
  13.             }
  14.             d.shift();
  15.         }
  16.     }
  17.     location.reload(true);
  18. })();
Add Comment
Please, Sign In to add comment