loginv2

loginv2

V2EX member #38849, joined on 2013-05-11 19:21:13 +08:00
Today's activity rank 14473
Per loginv2's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
loginv2's recent replies
1 day ago
Replied to a topic by knightgao2 › 问与答 › V2EX Polish 2.5.5 异常占用
自动签到我自己写的 可以试试
//自动签到
(function() {
// 检查 src 是否包含 '/mission/daily' 避免 iframe 无限套娃
const iframeSrc = window.location.href;
if ((window.self !== window.top) && iframeSrc.includes('/mission/daily')) {
//console.log('当前在 iframe 中,且 src 包含 /mission/daily');
return ;
}

// 检查是否已登录(没有注册/登录链接)
var signupLinks = document.querySelectorAll('a[href="/signup"], a[href="/signin"]');
var isLoggedIn = signupLinks.length === 0 && !document.body.innerHTML.includes(';</span> 创建新回复</div>');

if (isLoggedIn) {
var userLink = document.querySelector('a[href^="/member/"]');
if (!userLink){
return;
}

// 创建不可见的 iframe
var iframe = document.createElement('iframe');
iframe.src = '/mission/daily';
iframe.id = 'qiandao';
// 隐藏 iframe
//iframe.style.display = 'none';
iframe.style.width = '0';
iframe.style.height = '0';
iframe.style.border = 'none';
iframe.style.visibility = 'hidden';
iframe.style.position = 'absolute';
// 当 iframe 加载完成后执行
iframe.onload = function() {
// 获取 iframe 内的文档对象
var iframe = document.querySelector('#qiandao');
var iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
var 签到状态 = iframeDoc.querySelector('div#Main>div.box').innerText.indexOf("每日登录奖励已领取");

if (签到状态 > -1) {
//今天已经签到了
document.querySelector("#search").placeholder = "签到已经完成";
// 完成后移除 iframe
document.body.removeChild(iframe);
// 隐藏签到提示
const targetLinks = Array.from(document.querySelectorAll("#Rightbar > div.box a")).filter(a => {
return a.textContent.trim() === '领取今日的登录奖励';
});
if (targetLinks.length>0) {
// 获取第一个匹配 a 标签的父级 div.box
const parentBox = targetLinks[0].closest('div.box');
// 隐藏这个 div.box
if (parentBox) {
parentBox.style.display = 'none';
}
}
}else{
var 签到按钮 = iframeDoc.querySelector("input[type=button][value='领取 X 铜币']");
var 签到地址 = "/mission/daily/redeem?"+签到按钮.getAttribute('onclick').match(/once=[^']+/)[0];
iframe.src = 签到地址;
}
};

// 将 iframe 添加到页面
document.body.appendChild(iframe);
}
})();
希望支持 vivaldi
Sep 29
Replied to a topic by thomas01 › 生活 › 兄弟们,我好像错过了一个好女孩
最讨厌楼主这种人,说话不算数,想着先糊弄一点是一点。做不到就不要承诺,哪怕一开始不知道做不到,那之后发现了也要尽早说。
换个思路,把电视做成大屏幕,然后继续用手机投屏 不就完事了。 投屏直接插有线
Aug 31
Replied to a topic by dvbs2000 › 北京 › 北京如果想中午吃饭健康又好吃
@lyhapple 红烧肉很贵,快 30 了,但是烧茄子 12 ,土豆丝 8 块,西红柿鸡蛋也不贵。我也有一段时间没吃了,昨天去吃了一顿烧茄子,算支付宝优惠花了 11 ,因为赶时间没观察其他菜的价格。味道依旧很稳定
Aug 30
Replied to a topic by dvbs2000 › 北京 › 北京如果想中午吃饭健康又好吃
一般吃田老师红烧肉连锁店的盖饭,我感觉还凑合 稳定不出错 好吃倒是好吃不到哪儿去
一直用的 omv ,国内这些系统真不想用,
Jul 18
Replied to a topic by davinci21s › 深圳 › 深圳的西瓜是镶了金边吗,这么贵
昨天逛街遇到个一块钱 3 斤的,爽吃
@Danswerme 可以 但是不一定好看,风景好看一般都是人造的。你能随便上去的大概是荒山,全是石头没啥草。
我内蒙人,我们住城里不爱住这种地方,这种地方就是给外地人圈的旅游(坑钱)区,连放牧的都不来(草也是要保护的)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   706 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 22:30 · PVG 06:30 · LAX 14:30 · JFK 17:30
♥ Do have faith in what you're doing.