Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript: void(function () {
- var domain = location.hostname;
- function setCookie(t) {
- var a = t.split("; ");
- // console.log(a);
- for (var i = a.length - 1; i >= 0; i--) {
- var b = a[i].split("=")[0];
- var c = a[i].split("=")[1];
- var d = new Date();
- d.setTime(d.getTime() + (7 * 24 * 60 * 60 * 1000));
- var e = `domain=.${domain};expires=${d.toUTCString()}`;
- document.cookie = b + "=" + c + "; " + e
- }
- }
- var f = prompt("Enter your Cookie here", "");
- setCookie(f);
- location.reload()
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement