NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Make hidden files grey in ruTorrent
// @description In ruTorrent, when adding a torrent and selecting download directory, script will make all hidden directory (starting with .dot) grey
// @match */plugins/_getdir/getdirs.php*
// @licence MIT
// @copyright 2018, maksimkurb (https://openuserjs.org/users/maksimkurb)
// @author Maxim Kurbatov
// @updateURL https://openuserjs.org/meta/maksimkurb/Mare_hidden_files_grey_in_ruTorrent.meta.js
// ==/UserScript==
(function() {
'use strict';
var regexp = /( |&(\w+);)*(\.)(\w+)/;
document.querySelectorAll('.rmenuobj td.rmenuitem').forEach(item => {
if (regexp.test(item.innerText)) {
item.style.color="grey";
}
});
})();