-
-
Save rolltidehero/b525190643883c9da32ff60c6b82e2fc to your computer and use it in GitHub Desktop.
Userscript to hide Handshake TLDs from Pornbun's all-extensions page.
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 Hide Porkbun Handshake TLDs | |
// @description Hide Handshake TLDs from Pornbun's all-extensions page. | |
// @namespace http://seenet.ca/ | |
// @version 1.0 | |
// @match https://porkbun.com/products/domains | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=porkbun.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Remove rows for Handshake TLDs. | |
document.querySelectorAll('img[src="/images/handshake-icon.svg"]').forEach((image) => { | |
image.parentElement.parentElement.parentElement.parentElement.remove(); | |
}); | |
// Remove headings for any now-empty sections. | |
document.querySelectorAll('div.searchResultsTldLetterBox').forEach((header) => { | |
if (header.nextElementSibling.classList.contains('searchResultsTldLetterBox')) { | |
header.remove(); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment