/    Sign up×
Community /Pin to ProfileBookmark

kill a memory cookie

I currently use a javascript bookmarklet to kill a memory cookie set by my shoppingcart company when i want to effectivly “reset all my items in the cart to zero” but it does not work when i run framesets.
I was wondering, is there any workaround for this. I have tried to run the bookmarklet from within the frame as a link but I’m having no luck.The JS bookmarklet is below

<A HREF=”javascript?function(){C=document.cookie.split(%22; %22);for(d=%22.%22+location.host;d;d=(%22%22+d).substr(1).match(/..*$/))for(sl=0;sl<2;++sl)for(p=%22/%22+location.pathname;p;p=p.substring(0,p.lastIndexOf(‘/’)))for(i in C)if(c=C[i]){document.cookie=c+%22; domain=%22+d.slice(sl)+%22; path=%22+p.slice(1)+%22/%22+%22; expires=%22+new Date((new Date).getTime()-1e11).toGMTString()}})()” ADD_DATE=”0″ LAST_VISIT=”0″ LAST_MODIFIED=”0″>zap cookies</A>

HELP!
I know you are all very smart and would appriciate a fix

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @mrpokeypie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...