Skip to content

Instantly share code, notes, and snippets.

View GrapeApple0's full-sized avatar
🍵
にゃーん

Porlam Nicla GrapeApple0

🍵
にゃーん
View GitHub Profile
@GrapeApple0
GrapeApple0 / example.ap.json
Last active December 27, 2022 04:09
.ap Whois
{
"domain":"example.ap",
"status":"Activa",
"register":"ApolenNic",
"registry":"ApolenNic (http://nic.ap/)",
"address":"2-6 MeinStlet Dublik Apolen",
"email":"webmaster@nic.ap"
}
@GrapeApple0
GrapeApple0 / content.js
Last active December 20, 2022 10:03
Return Twitter Client Info
var parser = new URL(location.href);
async function setClientInfo() {
parser = new URL(location.href);
if (!isNaN(parser.pathname.split('/')[3])) {
const _sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
fetch('https://api.twitter.com/2/tweets?ids=' + parser.pathname.split('/')[3] + '&tweet.fields=attachments,author_id,context_annotations,created_at,entities,geo,id,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,source,text,withheld&expansions=referenced_tweets.id', {
headers: {
'Authorization': 'Bearer $TwitterAPIBearerToken'
}
}).then(function (data) {