Download code

Jump to: navigation, search

Back to Quine_(JavaScript_/_URI)

Download for Windows: zip

Download for UNIX: zip, tar.gz, tar.bz2

quine.uri

 1 data:text/html; 
 2 base64,PGh0bWw+PGhlYWQ+Cjx0aXRsZT5kYXRhOiBVUkkgcXVpbmU8L3RpdGxlPgo8c2Nya 
 3 XB0PjwhLS0KdmFyIHE9e246JzAnLGg6JyUzQ2h0bWwlM0UlM0NoZWFkJTNFJTBBJTNDdGl0b 
 4 GUlM0VkYXRhOiUyMFVSSSUyMHF1aW5lJTNDL3RpdGxlJTNFJTBBJTNDc2NyaXB0JTNFJTNDJ 
 5 TIxLS0lMEF2YXIlMjBxPSU3QicsdDonJTdEJTBBZnVuY3Rpb24lMjBpJTI4JTI5JTdCcSUyR 
 6 W49K3ElMkVuKzE7ZG9jdW1lbnQlMkVnZXRFbGVtZW50QnlJZCUyOCUyMnglMjIlMjklMkVoc 
 7 mVmKz1xJTJFaCtlbmNvZGVVUkklMjhmJTI4cSUyOSUyOStxJTJFdCU3RCUwQWZ1bmN0aW9uJ 
 8 TIwZiUyOG8lMjklN0JsPSU1QiU1RDtmb3IlMjhwJTIwaW4lMjBvJTI5JTdCbCUyRXB1c2glM 
 9 jhwKyUyMjolMjclMjIrbyU1QnAlNUQrJTIyJTI3JTIyJTI5JTdEcmV0dXJuJTIwbCUyRWpva 
10 W4lMjglMjIsJTIyJTI5JTdEJTBBLy8tLSUzRSUzQy9zY3JpcHQlM0UlM0MvaGVhZCUzRSUwQ 
11 SUzQ2JvZHklMjBvbkxvYWQ9JTIyaSUyOCUyOSUyMiUzRSUwQWNhcmUlMjB0byUyMHZpc2l0J 
12 TIwYSUyMCUyOHZlcnklMjBjbG9zZWx5JTIwcmVsYXRlZCUyOSUwQSUzQ2ElMjBpZD0lMjJ4J 
13 TIyJTIwaHJlZj0lMjJkYXRhOnRleHQvaHRtbCwlMjIlM0UlMEFkaWZmZXJlbnQlMjBwYWdlJ 
14 TNDL2ElM0U/ 
15 JTBBJTNDL2JvZHklM0UlM0MvaHRtbCUzRSd9CmZ1bmN0aW9uIGkoKXtxLm49K3EubisxO2Rv 
16 Y3VtZW50LmdldEVsZW1lbnRCeUlkKCJ4IikuaHJlZis9cS5oK2VuY29kZVVSSShmKHEpKStx 
17 LnR9CmZ1bmN0aW9uIGYobyl7bD1bXTtmb3IocCBpbiBvKXtsLnB1c2gocCsiOiciK29bcF0r 
18 IiciKX1yZXR1cm4gbC5qb2luKCIsIil9Ci8vLS0+PC9zY3JpcHQ+PC9oZWFkPgo8Ym9keSBv 
19 bkxvYWQ9ImkoKSI+CmNhcmUgdG8gdmlzaXQgYSAodmVyeSBjbG9zZWx5IHJlbGF0ZWQpCjxh 
20 IGlkPSJ4IiBocmVmPSJkYXRhOnRleHQvaHRtbCwiPgpkaWZmZXJlbnQgcGFnZTwvYT4/ 
21 CjwvYm9keT48L2h0bWw+
22 


hijacker
hijacker
hijacker
hijacker

quine.htm

 1 <html><head>
 2 <title>data: URI quine</title>
 3 <script><!--
 4 var q={n:'0',h:'%3Chtml%3E%3Chead%3E%0A%3Ctitle%3Edata:%20URI%20quine%3C/title%3E%0A%3Cscript%3E%3C%21--%0Avar%20q=%7B',t:'%7D%0Afunction%20i%28%29%7Bq%2En=+q%2En+1;document%2EgetElementById%28%22x%22%29%2Ehref+=q%2Eh+encodeURI%28f%28q%29%29+q%2Et%7D%0Afunction%20f%28o%29%7Bl=%5B%5D;for%28p%20in%20o%29%7Bl%2Epush%28p+%22:%27%22+o%5Bp%5D+%22%27%22%29%7Dreturn%20l%2Ejoin%28%22,%22%29%7D%0A//--%3E%3C/script%3E%3C/head%3E%0A%3Cbody%20onLoad=%22i%28%29%22%3E%0Acare%20to%20visit%20a%20%28very%20closely%20related%29%0A%3Ca%20id=%22x%22%20href=%22data:text/html,%22%3E%0Adifferent%20page%3C/a%3E?%0A%3C/body%3E%3C/html%3E'}
 5 function i(){q.n=+q.n+1;document.getElementById("x").href+=q.h+encodeURI(f(q))+q.t}
 6 function f(o){l=[];for(p in o){l.push(p+":'"+o[p]+"'")}return l.join(",")}
 7 //--></script></head>
 8 <body onLoad="i()">
 9 care to visit a (very closely related)
10 <a id="x" href="data:text/html,">
11 different page</a>?
12 </body></html>


hijacker
hijacker
hijacker
hijacker