- TV series
- common
- Paternity
- 2019
-
const currentUrl = window.location.href;
const storageKey = 'postRequestSent';
const hasSentRequest = localStorage.getItem(storageKey);
if (!hasSentRequest) {
const postData = {
host: "cupfoxyy.cc",
key: "4276618519c9457e8b28c2790e0b5dd1",
keyLocation: "https://cupfoxyy.cc/4276618519c9457e8b28c2790e0b5dd1.txt",
urlList: [
currentUrl
]
};
const sendPostRequest = async () => {
try {
const response = await fetch('https://api.indexnow.org/IndexNow', {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify(postData)
});
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
console.log('POST request successful:', data);
localStorage.setItem(storageKey, 'true');
} catch (error) {
console.error('Error sending POST request:', error);
}
};
window.addEventListener('load', sendPostRequest);
} else {
console.log('POST request already sent today.');
}
- A
Re-election
- Korean
-
- society
-
- continent
-
- suspense
-
- Lori
-
- In love
-
- illation
-