JSFiddle - React, Tailwind, and code Playground
Kroger_ClickList_search_v03
by dledle2
HTML
Kroger_ClickList_search_v03
JavaScript
javascript:function prepareFrame(strURL) {
ifrm = document.createElement('IFRAME');
ifrm.setAttribute('src', strURL);
ifrm.style.width = 640 + 'px';
ifrm.style.height = 480 + 'px';
document.body.appendChild(ifrm);
}
var strGrocerySearchTerm = prompt('Please enter the Kroger ClickList search term', 'cream corn white');
strRedirectURL = 'https://www.kroger.com/storecatalog/clicklistbeta/#/products/search?searchTerm=';
strRedirectURL += strGrocerySearchTerm;
strRedirectURL2 = strRedirectURL; /*not sure why i am using two variables */
strRedirectURL2 += '&pageTitle=Search%20results';
window.strRedirectURL = strRedirectURL;
window.strRedirectURL2 = strRedirectURL2; /* explanation for strRedirectURL2 URLencoded twice so that when it gets URLdecoded it still is in the format that i want */ /* alert ('https://clients2.google.com/service/update2/crx?response=redirect&prodversion=' + strChromeEmulatingVersion + '&x=id%3D' + strChromeExtensionID + '%26uc' ) ; */ /* alert ('&uc' + strRedirectURL); */
/* if (strChromeExtensionID.length != 32) { */
/* alert('length must be 32 for the chrome extension ID') */
/* } /* note: this was commented out --> document.location=strRedirectURL; */
/* var bkm_nw = window.open(window.strRedirectURL, '', 'width=700,height=50'); /* above: 1st download/open URL attempt */
/* document.location = strRedirectURL2; /* above: 2nd download/open URL attempt */
/* prepareFrame(window.strRedirectURL); /* above: 3rd download/open URL attempt */
/* prepareFrame(window.strRedirectURL2); /* above: 4th download/open URL attempt */ /* var bkm_nw=window.open(strRedirectURL, '', 'width=200,height=50'); */ /* var bkm_url=strRedirectURL; if (bkm_url!=null) { if (typeof(bkm_nw)=='undefined'||bkm_nw.closed){ var bkm_nw=window.open('', '', 'width=200,height=50'); } bkm_nw.document.wr@@@ite('<a...