Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BoQsc/f864ce05c2ec923ca2a37a368b25e8c5 to your computer and use it in GitHub Desktop.
Save BoQsc/f864ce05c2ec923ca2a37a368b25e8c5 to your computer and use it in GitHub Desktop.
https://tld-list.com/ Tampermonkey Script
// ==UserScript==
// @name Removes unavailable domains every other second
// @namespace http://tampermonkey.net/
// @version 0.1
// @description scribbled a poorly working script to filter out occupied domains on the page
// @author You
// @match https://tld-list.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=tld-list.com
// @grant none
// ==/UserScript==
let call_function_at_2seconds_interval = window.setInterval(function(){
remove_elements_in_the_page();
}, 2000);
function remove_elements_in_the_page(){
while(document.querySelectorAll(`[title*="ot available for registration"]`).length){
document.querySelectorAll(`[title*="ot available for registration"]`)[0].parentNode.remove();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment