Skip to content

Instantly share code, notes, and snippets.

View arbazsiddiqui's full-sized avatar
🏡
Working from Home

Arbaz Siddiqui arbazsiddiqui

🏡
Working from Home
View GitHub Profile
@arbazsiddiqui
arbazsiddiqui / image.js
Created April 6, 2018 18:09
A function to view all the pictures in an open directory.
javascript:(function () {
function I(u) {
var t = u.split('.'), e = t[t.length - 1].toLowerCase();
return {gif: 1, jpg: 1, jpeg: 1, png: 1, mng: 1}[e]
}
function hE(s) {
return s.replace(/&/g, '&').replace(/>/g, '>').replace(/</g, '<').replace(/"/g, '"');
}