Skip to content

Instantly share code, notes, and snippets.

View rdadrl's full-sized avatar
💭
Studying 📚

Arda Ntourali rdadrl

💭
Studying 📚
View GitHub Profile
@rdadrl
rdadrl / filterTweets.js
Created May 14, 2020 14:30
Filter Tweets in your feed by emojis in user display names.
//A small gist to filter out unwanted tweets
//Categorizes by the emojis used in the display names
//param labelList: an array of strings corresponding to emoji names (e.g. ["Green circle", "🏠"])
function filterArticleList (labelList) {
articles = document.getElementsByTagName("article")
for (i = 0; i < articles.length; i++) {
displayNameHRef = articles[i].getElementsByTagName("a")[1];
@rdadrl
rdadrl / popdown.js
Last active May 3, 2018 07:48
Popup Generator
/*
Popdown.js
A simple popup creator with shadow.
simply, create a new variable and set it as a new PopDown() object, Eg.
var my_popup = new PopDown();
my_popup.toggle(); //displays on/off
my_popup.destroy(); //destroys the parent object,
my_popup.append(); re-append the div and also the shadow.