Last active
September 24, 2015 17:47
-
-
Save evopix/785284 to your computer and use it in GitHub Desktop.
Revisions
-
evopix revised this gist
Aug 16, 2013 . 1 changed file with 11 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,24 @@ // ==UserScript== // @id forum.kohanaframework.org-d0515b72-1b32-4b30-a2e6-ab4f0f3fbb13@evopix // @name KohanaForumHideRussian // @version 2.0 // @namespace evopix // @author Brandon Summers // @description Hide Russian threads from Kohana forum. // @include *forum.kohanaframework.* // @run-at document-end // ==/UserScript== function main() { var items = document.querySelectorAll('ul.DataList li.Item'); for (var i = 0, len = items.length; i < len; i++) { var elem = items[i], category = elem.querySelectorAll('div.Meta a.Category')[0].innerHTML; if (category == 'Русскоязычное сообщество') { elem.style.display = 'none'; } } } main(); -
evopix created this gist
Jan 18, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ // ==UserScript== // @name KohanaForumHideRussian // @namespace evopix // @description Hide Russian threads from Kohana forum. // @include *forum.kohanaframework.* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js // ==/UserScript== function main() { $('ul.DataList li.Item').each(function(i, elem) { var $this = $(this); var category = $this.find('div.Meta a.Category').text(); if (category == 'Русскоязычное сообщество') { $this.hide(); } }); } main();