Skip to content

Instantly share code, notes, and snippets.

@lord-alfred
Last active June 28, 2024 14:31
Show Gist options
  • Save lord-alfred/7aaf7584b7a831d2d4f41ab0067bcc9a to your computer and use it in GitHub Desktop.
Save lord-alfred/7aaf7584b7a831d2d4f41ab0067bcc9a to your computer and use it in GitHub Desktop.
expireddomains.net tampermonkey/greasemonkey userscript
// ==UserScript==
// @name Expired Domains script
// @namespace http://tampermonkey.net/
// @version 0.2
// @description https://t.me/Lord_Alfred
// @author Lord_Alfred
// @match https://member.expireddomains.net/domains/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=expireddomains.net
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js
// @run-at document-end
// ==/UserScript==
$('head').append(`
<style>
.main-host {
float: left;
}
.useful-links {
float: right;
font-weight:bold;
}
a.google-link:visited {
color: #000 !important;
}
html[data-theme='dark'] a.google-link:visited {
color: #ccc !important;
}
.google-link-1 {
color: #099101 !important;
}
.google-link-2 {
color: #ff5424 !important;
}
</style>
`);
$('table.base1 td.field_domain').each(function () {
var host = $(this).find('a').attr('title');
$(this).find('a').remove();
$(this).append(`
<div class="main-host">${host}</div>
<div class="useful-links">
<a class="google-link google-link-1" target="_blank" href="https://google.com/search?q=site%3A${host}">site</a> |
<a class="google-link google-link-2" target="_blank" href="https://google.com/search?q=${host.replace(/\./g, '%20')}">space</a>
</div>
`);
$(this).find('ul').remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment