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
//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]; |
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
/* | |
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. |