-
-
Save badsyntax/1594633 to your computer and use it in GitHub Desktop.
A Chrome UserScript to hide all Russian threads on Kohana's forum.
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
// ==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