I cannot run this bookmarklet on chrome:


#1

Bookmarklet cannot run on google chrome.What is the answer?
Here is the code:
javascript:(function(){
var id = prompt("Please enter variation ID");
var rememberPreview = function (minutes) {
minutes = minutes || 15;
var date = new Date();
date.setTime(date.getTime() + (minutes * 60 * 1000));
document.cookie = "smartserve_preview=true; expires=" + date.toGMTString() + "; path=/";
document.cookie = "etcForceCreative=[" + id + "]; expires=" + date.toUTCString() + "; path=/";

rememberPreview();
})();


#2

Your semi-colons-; had a strange constitution, wrong =character=
I replaced them

(function(){
  var id = prompt("Please enter variation ID");
  var rememberPreview = function (minutes) {
  minutes = minutes || 15;
  var date = new Date();
  date.setTime(date.getTime() + (minutes * 60 * 1000));
//document.cookie = "smartserve_preview=true; expires=" +
                     date.toGMTString() + "; path=/";
//document.cookie = "etcForceCreative=[" + id + "]; expires=" +
                     date.toUTCString() + "; path=/";
console.log( "smartserve_preview=true; expires=" +
              date.toGMTString() + "; path=/");
console.log( "etcForceCreative=[" + id + "]; expires=" +
              date.toUTCString() + "; path=/");
};
rememberPreview();
})();