Blog2005 ≫ Amazon favelet

Just made this javascript:d=document;l=location;cTest=/ASIN/(%5B0-9A-Z%5D+)/i;tTest=/(Amazon.co.uk)(.)/i;if(cTest.test(l.href)==true){var%20a=RegExp.$1;}if(tTest.test(d.title)==true){var%20t=RegExp.$2;}if(a&&t){l.href=('http://www.clarkeology.com/cgi-bin/board.cgi?table=amazon&mode=add&amazonCode='+a+'&amazonDescription='+t)}amazon favelet for (and javascript:d=document;l=location;cTest=/ASIN/(%5B0-9A-Z%5D+)/i;tTest=/(Amazon.co.uk)(.)/i;if(cTest.test(l.href)==true){var%20a=RegExp.$1;}if(tTest.test(d.title)==true){var%20t=RegExp.$2;}if(a&&t){l.href=('http://www.clarkeology.com/cgi-bin/board.cgi?table=amazon&mode=add&amazonCode='+a+'&amazonDescription='+t)} one for popex, if you're viewing an amazon product and you click this, it'll grab the code and the title and attempt to load it into my database of Amazon recommendations. Again a bit ropey, still needs more work, normal favelet rules apply...

javascript: Programming language of the web, mostly how I earn a wage.

⬅️ :: ➡️

Paulʼs weblog - I live in A sleepy town, Kent. Wed + dad to two, I am a full stack web developr, and I do mostly javascript / node, some ruby, other languages ect ect. My hobbies are pubs, running, eating, home-automation and other diy stuff, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.