Skip to content

Instantly share code, notes, and snippets.

View Ajax30's full-sized avatar
🏠
Working from home

Razvan Zamfir Ajax30

🏠
Working from home
View GitHub Profile
@Ajax30
Ajax30 / chromeLoginDataExporter.js
Last active July 9, 2017 16:09
Export the passwords stored in your Google Chrome browser
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
var bootstrapStylesheet = '<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">';
tableStart = '<table class="table table-striped"><thead>';
@Ajax30
Ajax30 / itemsloader.js
Last active September 5, 2016 19:40
Infinite scroll to load PHP files
function loadNewItems(){
var win = $(window);
var scrollCount = 0;
// Bind window scroll event
win.scroll(function() {
// If End of document reached
if ($(document).height() - win.height() == win.scrollTop()) {
// path to the file containing the code to load