Buri

A3 18+ script

Apr 29th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.addEvent('domready', function(){
  2. var q = $$('div.profile > div.profile-span > a'), cname = q[0].get('text') + ':' + document.location.pathname;
  3. if(!q.length || !Cookie.read(cname){
  4. var text = "18+?";
  5. if(confirm(text)){
  6. Cookie.write(cname, true, {duration:365})
  7. }else{
  8. location.href = '/herna/';
  9. }
  10. }
  11. });
Advertisement
Add Comment
Please, Sign In to add comment