Skip to content

feat(微博): 功能类-超话自动签到 #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 27, 2024
Merged

feat(微博): 功能类-超话自动签到 #189

merged 3 commits into from
Apr 27, 2024

Conversation

LingEmberMaple
Copy link
Contributor

No description provided.

{
key: 20,
name: '功能类-超话自动签到',
enable: false,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没必要加这个字段,构建的时候会把除开屏广告外的规则加上enable: false,

key: 0,
activityIds: 'com.sina.weibo.supergroup.SGPageActivity',
matches:
'[text="管理"] <<(11,12) [vid="footerMenuView"] -2 [vid="smartRefreshLayout"] >7 [text="签到" || text="Sign in"] < [vid="right_button"]',
Copy link
Owner

@AIsouler AIsouler Apr 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没必要写得这么复杂,[text="签到" || text="Sign in"] < [vid="right_button"]已能选中唯一节点,在这个情况下防止误触使用excludeMatches字段比较好

Comment on lines 358 to 359
matches:
'[text^="连续签到"] <<7 [vid="ll_base_v2"] +2 [vid="fl_bg"] > [vid="iv_close_v2"]',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[vid="iv_close_v2"]已是唯一节点

@AIsouler AIsouler merged commit 6d6ed59 into AIsouler:main Apr 27, 2024
1 check passed
@LingEmberMaple
Copy link
Contributor Author

受教了

没必要加这个字段,构建的时候会把除开屏广告外的规则加上enable: false,

没必要写得这么复杂,[text="签到" || text="Sign in"] < [vid="right_button"]已能选中唯一节点,在这个情况下防止误触使用excludeMatches字段比较好

[vid="iv_close_v2"]已是唯一节点

@LingEmberMaple
Copy link
Contributor Author

@AIsouler
如果不取消勾选“接收本超话签到提醒推送”直接关闭弹窗会自动打开“签到提醒”推送
IMG_20240427_111940
IMG_20240427_112002
不取消“关注@ XXX,接收更多福利”直接关闭弹窗不会自动关注

@LingEmberMaple
Copy link
Contributor Author

excludeMatches可以再添加一个text["關注"]

@AIsouler
Copy link
Owner

快照发一下

@LingEmberMaple

This comment was marked as off-topic.

@AIsouler
Copy link
Owner

image
发这个快照

@LingEmberMaple
Copy link
Contributor Author

https://i.gkd.li/i/15136961

image 发这个快照

@LingEmberMaple
Copy link
Contributor Author

这个问题只要在签到成功弹窗取消勾选“接收本超话签到提醒推送”就行了

如果不取消勾选“接收本超话签到提醒推送”直接关闭弹窗会自动打开“签到提醒”推送

@AIsouler
Copy link
Owner

c947a92

@LingEmberMaple LingEmberMaple deleted the com.sina.weibo.key20 branch April 27, 2024 06:52
@LingEmberMaple LingEmberMaple restored the com.sina.weibo.key20 branch April 27, 2024 07:43
@LingEmberMaple
Copy link
Contributor Author

excludeMatches似乎不起作用,未关注超话的情况下依然误触签到

@AIsouler
Copy link
Owner

excludeMatches似乎不起作用,未关注超话的情况下依然误触签到

误触快照发一下

@LingEmberMaple
Copy link
Contributor Author

https://i.gkd.li/i/15137550

excludeMatches似乎不起作用,未关注超话的情况下依然误触签到

误触快照发一下

@LingEmberMaple
Copy link
Contributor Author

LingEmberMaple commented Apr 27, 2024

超话页面加载慢一些的时候会误触

https://weibo.com/p/10080845bb403e6f6aeb6192eb4e337d4aa9fe
此页面大概率误触

@AIsouler
Copy link
Owner

可能是因为签到节点比关注节点先加载出来

@AIsouler
Copy link
Owner

{
  id: 'com.sina.weibo',
  name: '微博',
  groups: [
    {
      name: '功能类-超话自动签到',
      key: 20,
      quickFind: true,
      rules: [
        {
          name: '点击签到',
          key: 0,
          actionDelay: 1000,
          matches: [
            '[text="签到" || text="Sign in"] < [vid="right_button"][visibleToUser=true]'
          ],
          excludeMatches: [
            '[text="关注"][visibleToUser=true]',
            '[text="Follow"][visibleToUser=true]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/15092999',
            'https://i.gkd.li/i/15092970',
            'https://i.gkd.li/i/15136801'
          ],
          activityIds: [
            'com.sina.weibo.supergroup.SGPageActivity'
          ]
        }
      ]
    }
  ]
}

导入试试,把你之前的规则关了

@LingEmberMaple
Copy link
Contributor Author

可以,进入超话不误触了

不过刷新超话页面会导致误触,这加个actionMaximum应该可以解决

{
  id: 'com.sina.weibo',
  name: '微博',
  groups: [
    {
      name: '功能类-超话自动签到',
      key: 20,
      quickFind: true,
      rules: [
        {
          name: '点击签到',
          key: 0,
          actionDelay: 1000,
          matches: [
            '[text="签到" || text="Sign in"] < [vid="right_button"][visibleToUser=true]'
          ],
          excludeMatches: [
            '[text="关注"][visibleToUser=true]',
            '[text="Follow"][visibleToUser=true]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/15092999',
            'https://i.gkd.li/i/15092970',
            'https://i.gkd.li/i/15136801'
          ],
          activityIds: [
            'com.sina.weibo.supergroup.SGPageActivity'
          ]
        }
      ]
    }
  ]
}

导入试试,把你之前的规则关了

@AIsouler
Copy link
Owner

试一下这个

{
  id: 'com.sina.weibo',
  name: '微博',
  groups: [
    {
      name: '功能类-超话自动签到',
      key: 20,
      quickFind: true,
      rules: [
        {
          name: '点击签到',
          key: 0,
          matches: [
            'ViewGroup[childCount=2] > [text="管理"][visibleToUser=true]',
            '[text="签到" || text="Sign in"] < [vid="right_button"][visibleToUser=true]',
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/15092999',
            'https://i.gkd.li/i/15092970',
            'https://i.gkd.li/i/15136801'
          ],
          activityIds: [
            'com.sina.weibo.supergroup.SGPageActivity'
          ]
        }
      ]
    }
  ]
}

@LingEmberMaple
Copy link
Contributor Author

不会误触了

试一下这个

{
  id: 'com.sina.weibo',
  name: '微博',
  groups: [
    {
      name: '功能类-超话自动签到',
      key: 20,
      quickFind: true,
      rules: [
        {
          name: '点击签到',
          key: 0,
          matches: [
            'ViewGroup[childCount=2] > [text="管理"][visibleToUser=true]',
            '[text="签到" || text="Sign in"] < [vid="right_button"][visibleToUser=true]',
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/15092999',
            'https://i.gkd.li/i/15092970',
            'https://i.gkd.li/i/15136801'
          ],
          activityIds: [
            'com.sina.weibo.supergroup.SGPageActivity'
          ]
        }
      ]
    }
  ]
}

@AIsouler
Copy link
Owner

61a1b96

@LingEmberMaple
Copy link
Contributor Author

辛苦了 👍

61a1b96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants