removes domains longer than a specified length
当前为
// ==UserScript==
// @name short domains only!
// @namespace http://tampermonkey.net/
// @version 1.0
// @description removes domains longer than a specified length
// @author cv
// @match *://freedns.afraid.org/*
// @grant none
// @license Unlicense
// ==/UserScript==
(function() {
'use strict';
const char = 10; // max length
const rows = document.querySelectorAll('tr.trl, tr.trd');
rows.forEach(row => {
const link = row.querySelector('td > a');
if (link && link.textContent.length > char) {row.remove()}
});
})();