Last active
August 29, 2015 13:56
-
-
Save safareli/9225977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1393402804" LAST_MODIFIED="1393404076" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | |
<DL><p> | |
<DT><A HREF="javascript:var ___ = eval("$('input[type=text]').each(function(i,e){e.value = 'a'});$('#buttonn').click();")" ADD_DATE="1393403834">1</A> | |
<DT><A HREF="javascript:var ___ = eval("$('#buttonn').click();")" ADD_DATE="1393404046">n</A> | |
<DT><A HREF="javascript:var ___ = eval("var a = [];$('input[type=text]+b').each(function(i,e){a.push(e.textContent.split('(').join('').split(')').join(''))});localStorage.t = JSON.stringify(a);history.go(-1)")" ADD_DATE="1393403937">2</A> | |
<DT><A HREF="javascript:var ___ = eval("var a = JSON.parse(localStorage.t);$('input[type=text]').each(function(i,e){e.value = a[i]});$('#buttonn').click();")" ADD_DATE="1393403950">3</A> | |
<DT><A HREF="javascript:var ___ = eval("$('#buttonn').click();")" ADD_DATE="1393404064">n</A> | |
</DL><p> | |
</DL><p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var ___ = eval("$('input[type=text]').each(function(i,e){e.value = 'a'});$('#buttonn').click();") | |
javascript:var ___ = eval("$('#buttonn').click();") | |
javascript:var ___ = eval("var a = [];$('input[type=text]+b').each(function(i,e){a.push(e.textContent.split('(').join('').split(')').join(''))});localStorage.t = JSON.stringify(a);history.go(-1)") | |
javascript:var ___ = eval("$('#buttonn').click();") | |
javascript:var ___ = eval("var a = JSON.parse(localStorage.t);$('input[type=text]').each(function(i,e){e.value = a[i]});$('#buttonn').click();") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype._toIntArray = function(func){ | |
func = (typeof func == 'undefined') ? function(a){return a;}: func; | |
for (var b = [], i=0; i<this.length;i++) | |
b.push(func(this.charCodeAt(i))); | |
return b; | |
} | |
Array.prototype._intToString = function(func){ | |
func = (typeof func == 'undefined') ? function(a){return a;}: func; | |
for (var b = '', i=0; i<this.length;i++) | |
b += String.fromCharCode(func(this[i])); | |
return b; | |
} | |
//usage | |
var somestr = 'dju65eki^*(*%(&$%*%^$hjydfjfcnhcv'; | |
var encodedarr = somestr._toIntArray(function(i){return (i*3-180)*6}); | |
var decodedstr = encodedarr._intToString(function(i){return (i/6+180)/3}); | |
console.log(decodedstr ==somestr) // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment