Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name BanCookieBan
- // @description fuck cookie bans.
- // @namespace im.a.gay.cat
- // @include *4chan.org/*
- // @author team !kittensORw
- // @contributor !LunanonXE2
- // @contributor nokosage
- // @version 0.3
- // ==/UserScript==
- function bcb(){
- function a($Name,$Value,$EndH){
- var exdate=new Date();
- $EndH=exdate.getHours()+$EndH;
- exdate.setHours($EndH);
- document.cookie=$Name+ "=" +escape($Value)+(($EndH==null) ? "" : ";expires="+exdate.toGMTString()+"; path=/;domain=.4chan.org");
- }
- function clearC(){
- var cookiekiller = setInterval(function(){
- a('4chan_pass','_nope',1);
- },300);
- setTimeout(function(){clearInterval(cookiekiller);},5000);
- }
- clearC();
- var isChromium = window.chrome;
- if(isChromium) {
- document.addEventListener('QRPostSuccessful_', clearC, false);
- } else {
- document.addEventListener('QRPostSuccessful', clearC, false);
- }
- document.addEventListener("ThreadUpdate", clearC, false);
- }
- bcb();
Advertisement
Add Comment
Please, Sign In to add comment