google primes?
Friday, 3. July 2009, 10:42:14
You'll need to decode this and save it with a filename.html extension... I havn't got time for messing around with this blogs security settings... sorry!
Hmmmn so first you'll need to make a bookmarklet using this code:
call the bookmarklet "base64 select and decode into a window" ... I think you need to have popups active though... otherwise just change the window.open part to a prompt...
javascript: var input=document.selection?document.selection.createRange().text:window.getSelection().toString(); if(!input) input=prompt("input text you want to convert:",""); if(input!=null) var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var output=""; var chr1,chr2,chr3,enc1,enc2,enc3,enc; var i=0; input=input.replace(/[^A-Za-z0-9\+\/\=]/g,""); do{ enc1=keyStr.indexOf(input.charAt(i++)); enc2=keyStr.indexOf(input.charAt(i++)); enc3=keyStr.indexOf(input.charAt(i++)); enc4=keyStr.indexOf(input.charAt(i++)); chr1=(enc1<<2)|(enc2>>4); chr2=((enc2&15)<<4)|(enc3>>2); chr3=((enc3&3)<<6)|enc4; output=output + String.fromCharCode(chr1); if(enc3!=64){ output=output+String.fromCharCode(chr2); } if(enc4!=64){ output=output+String.fromCharCode(chr3); } } while(i<input.length); void 0; msgWindow=window.open("","","location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=547,height=442"); msgWindow.document.write(output); return;
heres the base64 encoded page data, once you've made the above bookmarklet, select the base64 code below and hit your new bookmarklet!:
Hmmmn so first you'll need to make a bookmarklet using this code:
call the bookmarklet "base64 select and decode into a window" ... I think you need to have popups active though... otherwise just change the window.open part to a prompt...
javascript: var input=document.selection?document.selection.createRange().text:window.getSelection().toString(); if(!input) input=prompt("input text you want to convert:",""); if(input!=null) var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var output=""; var chr1,chr2,chr3,enc1,enc2,enc3,enc; var i=0; input=input.replace(/[^A-Za-z0-9\+\/\=]/g,""); do{ enc1=keyStr.indexOf(input.charAt(i++)); enc2=keyStr.indexOf(input.charAt(i++)); enc3=keyStr.indexOf(input.charAt(i++)); enc4=keyStr.indexOf(input.charAt(i++)); chr1=(enc1<<2)|(enc2>>4); chr2=((enc2&15)<<4)|(enc3>>2); chr3=((enc3&3)<<6)|enc4; output=output + String.fromCharCode(chr1); if(enc3!=64){ output=output+String.fromCharCode(chr2); } if(enc4!=64){ output=output+String.fromCharCode(chr3); } } while(i<input.length); void 0; msgWindow=window.open("","","location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=547,height=442"); msgWindow.document.write(output); return;
heres the base64 encoded page data, once you've made the above bookmarklet, select the base64 code below and hit your new bookmarklet!:








