Advertisement
Wistaro

code_activer_interface_youtube_Wistaro

Mar 12th, 2017
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ACTIVER NOUVELLE INTERFACE YOUTUBE (Wistaro)
  2. //Vidéo ==> https://youtu.be/2kNXEXyRHj4
  3.  
  4. function setCookie(nom, valeur, expire, chemin, domaine, securite){
  5.      document.cookie = nom + ' = ' + escape(valeur) + '  ' +
  6.                ((expire == undefined) ? '' : ('; expires = ' + expire.toGMTString())) +
  7.                ((chemin == undefined) ? '' : ('; path = ' + chemin)) +
  8.                ((domaine == undefined) ? '' : ('; domain = ' + domaine)) +
  9.                ((securite == true) ? '; secure' : '');
  10. }
  11.  
  12. var dtExpire = new Date();
  13.  
  14. dtExpire.setFullYear(2040);
  15.  
  16. setCookie('VISITOR_INFO1_LIVE', 'Qa1hUZu3gtk', dtExpire, '/', '.youtube.com' );
  17.  
  18. document.cookie="PREF=f6=14; expires=dtExpire; path=/;domain=youtube.com";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement