Skip to content

Instantly share code, notes, and snippets.

@zoran15
zoran15 / facebook-ticker.js
Last active June 19, 2017 14:57 — forked from kopiro/facebook-ticker.js
Filter Facebook ticker stories with a RegEx
(function() {
var filterName = new RegExp(prompt("Insert the regex"), 'i');
if (!filterName) {
return alert('Invalid regex');
}
var MAX_ITERATIONS = 500;
var $profileNode = document.querySelector('[data-testid="blue_bar_profile_link"] > span');