Skip to content

Instantly share code, notes, and snippets.

@harryi3t
Last active December 2, 2016 06:27
Show Gist options
  • Save harryi3t/e5b5de1d01947ece814ec80f74676373 to your computer and use it in GitHub Desktop.
Save harryi3t/e5b5de1d01947ece814ec80f74676373 to your computer and use it in GitHub Desktop.
This is used a tamper monkey script to block some content on quora based on list of keywords
// ==UserScript==
// @name Block content on quora.
// @namespace http://github.com/harryi3t
// @version 0.1
// @description try to resuce people from unwanted content
// @author harryi3t
// @match https://www.quora.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
var keywords = ['Tinder'];
setTimeout(cleanFeed, 1000);
function cleanFeed() {
keywords.forEach(
function(kw) {
$('.question_text').each(
function() {
if ($(this).text().match(new RegExp(kw)))
$(this).parent().parent().parent().parent().parent().parent().parent().hide();
}
);
}
);
}
cleanFeed();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment