Created
September 19, 2022 12:08
-
-
Save MrDOS/b2c320da1f66073b5edf8f7ca3fdb5e2 to your computer and use it in GitHub Desktop.
Userscript to hide Handshake TLDs from Pornbun's all-extensions page.
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 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