const currentUrl = window.location.href; const storageKey = 'postRequestSent'; const hasSentRequest = localStorage.getItem(storageKey); if (!hasSentRequest) { const postData = { host: "paopaotw.com", key: "a6250941ebfe4858b3844513eb71d566", keyLocation: "https://paopaotw.com/a6250941ebfe4858b3844513eb71d566.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.'); }
Search
Lu Zong
There is a fairy wife in the family All 85 episodes
War films
const currentUrl = window.location.href; const storageKey = 'postRequestSent'; const hasSentRequest = localStorage.getItem(storageKey); if (!hasSentRequest) { const postData = { host: "paopaotw.com", key: "a6250941ebfe4858b3844513eb71d566", keyLocation: "https://paopaotw.com/a6250941ebfe4858b3844513eb71d566.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.'); }
All videos and pictures on this website are collected from the Internet, and the copyright belongs to the original author. This website only provides web page services, does not provide resource storage, and does not participate in recording or uploading.