Skip to content

Instantly share code, notes, and snippets.

View immae1's full-sized avatar
🔮
just like magic

Immanuel Haag immae1

🔮
just like magic
View GitHub Profile
@immae1
immae1 / .var.www.html.pihole.index.js
Last active February 12, 2021 16:55
This script is to add a random gif into the PIHOLE blockpage
// on page load, search for & display a random gif matching your search term using the Giphy API and add them to the pihole blockpage
// thanks to the nealrs (github)
// immae1 2017
var x = "Pi-hole: A black hole for Internet advertisements."
document.addEventListener('DOMContentLoaded', function () {
items = ["funny cats","dejay","nerd","beer"]; // tag array
var item = items[Math.floor(Math.random()*items.length)];