Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save badsyntax/1594633 to your computer and use it in GitHub Desktop.
Save badsyntax/1594633 to your computer and use it in GitHub Desktop.
A Chrome UserScript to hide all Russian threads on Kohana's forum.
// ==UserScript==
// @name KohanaForumHideRussian
// @description Hide Russian threads from Kohana forum.
// @include *forum.kohanaframework.*
// ==/UserScript==
! function(){
var items = document.querySelectorAll('ul.DataList li.Item');
for(var i = 0, l = items.length; i < l; i++) {
var
item = items[i],
category = item.querySelector('.Category');
if (category !== null && category.innerHTML == 'Русскоязычное сообщество') {
item.style.display = 'none';
}
}
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment