TheNetsky / Microsoft-Rewards-Script

Automated Microsoft Rewards script, using TypeScript, Cheerio and Playwright.
133 stars 33 forks source link

Puzzle daily activity #97

Closed jordyamc closed 3 months ago

jordyamc commented 3 months ago

The puzzle activity can be omitted with a button (upper right corner), I think it can be automated

TheNetsky commented 3 months ago

There's no such activity in my region.

jordyamc commented 3 months ago

I can provide links and the HTML code of the puzzle

The activity url looks like this: https://www.bing.com/spotlight/imagepuzzle?form=ML2BF0&OCID=ML2BF0&PUBL=RewardsDO&PROGRAMNAME=BingDailyOfferIN&CREA=ML2BF0

Here's the activity: SS 2024-04-20 160616

This is how it looks: SS 2024-04-20 160533

The upper right button skips the activity and gives you the points, the html code of the button looks like this:

<div class="skipPuzzle" id="skipPuzzle">
   <a target="_blank" href="https://www.bing.com/ck/a?!&amp;&amp;p=9950f104e2ba823bJmltdHM9MTcxMzU3MTIwMCZpZ3VpZD0zOGUzMGMzMy02ZjE0LTY4NDItMTQ5Ny0xODUzNmU3NzY5NDImaW5zaWQ9NTA0NQ&amp;ptn=3&amp;ver=2&amp;hsh=3&amp;fclid=38e30c33-6f14-6842-1497-18536e776942&amp;u=a1aHR0cHM6Ly93d3cuYmluZy5jb20vc3BvdGxpZ2h0P3E9QmFueXV3YW5naUluZG9uZXNpYSZzcG90bGlnaHRJZD1CYW55dXdhbmdpSW5kb25lc2lhJkZPUk09bWwyYmYw&amp;ntb=1" h="ID=SERP,5045.2">
      <div>Omitir rompecabezas</div>
   </a>
</div>

And here's the html code: Puzzle.zip

TheNetsky commented 3 months ago

Well, untill the puzzle is in my region, I won't be adding support for it. However feel free to submit a PR yourself if you're feeling up for it.

xunilalala commented 3 months ago

拼图活动可以用按钮(右上角)省略,我认为它可以自动化

Completing the puzzle is not the criterion for finishing the activity!

I am a user of Bing in China. I also have this puzzle activity, but the condition for completing it is not finishing the puzzle. Simply opening the activity and then closing the window (I cannot guarantee that closing this action will not affect the completion judgment) will suffice for completion. The existing bots are capable of completing this activity and will take less time.

jordyamc commented 3 months ago

but the condition for completing it is not finishing the puzzle

I did some tests and the activity didn't shows as completed until the puzzle is solved or when the skip button is clicked, I already did the code necessary to complete the puzzle (At lease I hope so, I have never worked with Playwright) but unfortunately the puzzle activity is not showing for me today so I can't test it

serzak51 commented 3 months ago

Yeah, me too, simply opening and closing the activity seems to work. Maybe it's region related, in some region it check if the puzzle was made/skipped, in others they don't bother with it

xunilalala commented 3 months ago

but the condition for completing it is not finishing the puzzle

I did some tests and the activity didn't shows as completed until the puzzle is solved or when the skip button is clicked, I already did the code necessary to complete the puzzle (At lease I hope so, I have never worked with Playwright) but unfortunately the puzzle activity is not showing for me today so I can't test it

My region is China, and my jigsaw puzzle activity has indeed been completed by a bot (without my manual participation throughout the process). Perhaps, as @serzak51 mentioned, your region may have its own set of detection methods.

TheNetsky commented 3 months ago

In that case make your modifications to a fork of this repo.