油猴脚本

// ==UserScript==
// @name PreMint-UI
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author MurMurCats - LL
// @match https://www.premint.xyz/collectors/entries/
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @require https://unpkg.com/jquery@3.3.1/dist/jquery.min.js
// @grant GM_xmlhttpRequest
// ==/UserScript==
$(function () {
const urlRoot = 'https://www.premint.xyz';
const winFontSize = 15
const winColor = 'red'
const winWord = ''
const checkItemsNumber = 15
let urlList = [];
let i = 0;
let targetUrl = '';
let responseHtmlElement = null;
let t1 = '';
let t2 = '';
$(".card-image a").each(function () {
urlList[i] = urlRoot + $(this).attr("href") + "verify/";
$(this).attr("href", urlList[i])
i++
});
i = Math.min(i, 150)
for (let q = 0; q < i; q++) {
GM_xmlhttpRequest({
method: 'GET',
url: urlList[q],
headers: {
'User-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function (res) {
if (res.status === 200) {
responseHtmlElement = res.responseText;
t1 = $(".heading.heading-1", responseHtmlElement).get(1);
t2 = $(".heading.heading-3.mb-3", responseHtmlElement).get(0)
$(".card-image").get(q).append($(t1).html());
$(".card-image").get(q).append($(t2).html());
if ($(t1).html().indexOf("") != -1 || $(t2).html().indexOf("were selected") >= 0) {
$($(".card-image").get(q)).css("color", winColor);
$($(".card-image").get(q)).css("fontSize", winFontSize);
$(".heading").append(winWord);
}
} else {
console.log('error, res.status = ', res.status);
}
},
onerror: function (err) {
console.log('err', err);
}
});
}
});

https://www.premint.xyz/collectors/entries/

