Can you decipher this web script for Youtube player?

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    http://gmodules.com/ig/ifr?url=http://padmanijain....

    is

    (function(){var c=document.bgColor;var r,g,b;if(c.length!=7){r=g=b=1;}else{c=c.substring(1,c.length);r=parseInt(c.substring(0,2),16)/255;g=parseInt(c.substring(2,4),16)/255;b=parseInt(c.substring(4,6),16)/255;}var bgcolor=((r+g+b)/3<0.5)?'ffffff':'0000cc';var c='color:#'+bgcolor+';';var blue='color:#0000cc;';var hover='color:#3366cc;';var visited='color:#551a8b;';var active='color:#ff0000;';var sz9='font-size:9px;';var sz12='font-size:12px;';var underline='text-decoration:underline;';var bold='font-weight:bold;';var misc='font-family:arial,sans-serif;font-variant:normal;font-style:normal;word-spacing:normal;letter-spacing:normal;vertical-align:middle;text-transform:none;text-indent:0;line-height:normal;white-space:normal;';var css='<style>.ig_tbl_img .ig_smbluetext{' + misc + blue + sz9 + '}.ig_tbl_img .ig_lgbluetext{' + misc + blue + sz12 + '}.ig_tbl_img .ig_smbluelink, .ig_tbl_img .ig_smbluelink:link {' + misc + blue + sz9 + underline + '}.ig_tbl_img .ig_lgbluelink, .ig_tbl_img .ig_lgbluelink:link {' + misc + blue + sz12 + underline + '}.ig_tbl_line .ig_smbluetext{' + misc + c + sz9 + '}.ig_tbl_line .ig_lgbluetext{' + misc + c + sz12 + '}.ig_tbl_line .ig_smbluelink, .ig_tbl_line .ig_smbluelink:link {' + misc + c + sz9 + underline + '}.ig_tbl_line .ig_lgbluelink, .ig_tbl_line .ig_lgbluelink:link {' + misc + c + sz12 + underline + '}.ig_smbluelink:hover {' + misc + hover + sz9 + underline + '}.ig_smbluelink:visited {' + misc + visited + sz9 + underline + '}.ig_smbluelink:active {' + misc + active + sz9 + underline + '}.ig_lgbluelink:hover {' + misc + hover + sz12 + underline + '}.ig_lgbluelink:visited {' + misc + visited + sz12 + underline + '}.ig_lgbluelink:active {' + misc + active + sz12 + underline + '}</style>';var html='<style>.ig_tbl_img table,.ig_tbl_img tr,.ig_tbl_img td,.ig_tbl_img a,.ig_tbl_img span,.ig_tbl_line table,.ig_tbl_line tr,.ig_tbl_line td,.ig_tbl_line a,.ig_tbl_line span,ig_reset{margin:0;padding:0;padding-left:0;padding-right:0;border:0;border-collapse:collapse;float:none;clear:none;width:auto;height:auto;background:transparent none;background-position:0%;font-family:arial,sans-serif;font-variant:normal;font-style:normal;word-spacing:normal;letter-spacing:normal;vertical-align:middle;text-transform:none;text-indent:0;line-height:1.0;white-space:normal;top:auto;bottom:auto;}</style><table class=\042ig_reset ig_tbl_line\042width=230><tr><td colspan=2 style=\042vertical-align:bottom;text-align:center;width:100%;\042><a target=_top class=\042ig_lgbluelink\042 href=\042http://padmanijain.googlepages.com/myexperiments.h... Player</a> </td></tr><tr><td style=\042height:2px;\042> </td></tr><tr><td colspan=2><div style=\042background:white;padding:3px;border:1px solid #999999;\042><iframe src=\042http://gmodules.com/ig/ifr?url=http://padmanijain.... width=230 height=330 style=\042display:block\042 frameborder=0></iframe></div></td></tr><tr><td style=\042text-align:left\042><div style=\042height:20px\042 id=left__ID__><a target=_top href=\042http://fusion.google.com/ig/add?synd=open&source=g... style=\042border:0;height:17px;width:68px\042 src=\042http://gmodules.com/ig/images/plus_google.gif\042>... style=\042text-align:right;vertical-align:middle;\042><div id=right__ID__><a target=_top style=\042font-size:10px;color:#0000cc;text-decoration:underline;\042 href=\042http://www.google.com/webmasters/gadgets.html\042>... style=\042font-size:10px;color:#0000cc;\042> powered by Google</span></div></td></tr></table>';html=html.replace(/__LOCATION__/g, encodeURIComponent(location.href));html=html.replace(/__ID__/g, Math.floor(Math.random()*1000000000)+12345678);document.write(css + html);})();

    which is a bookmarklet to bring up a video, on a page that didn't actually have youtube on it... very compact.. pretty cute!

    • Login to reply the answers
Still have questions? Get your answers by asking now.