Sharing My Userscript

I've created a userscript that adds a popup message to display referral links and clearance links that are taken directly from Cheapies. It can also show reminders for other things as well, such as using Dosh card to pay for stuff (to earn cashback). I needed this as I have a couple of cards and I sometimes forget that I can use Dosh to pay for my utilities (as normally I have either direct debit or automatic payment configured and so it wouldn't occur to me to use Dosh).

There are also times where I don't see a long standing deal in the Cheapies browser extension, so I can use this script to remind me to check that.

This works on all browsers. Just install a userscript manager such as Tampermonkey or ViolentMonkey. I personally use ViolentMonkey on Vivaldi & Firefox. Then just create a new script and copy and paste my code in there.

Here's the code, feel free to tweak it to your liking, such as adjusting the color of the popup and the location of it, as well as transparency etc.
https://pastebin.com/Jr2Hkx4R

https://imgur.com/a/6eA9BI2
https://imgur.com/mTdfNvu

You can move the popup anywhere on the screen and it should retain its position even after a page refresh.

Comments

  • Wow - a serious bit of work. Ummm how do I get this to work in chrome or edge ?

    • greasemonkey or tampermonkey

    • Have updated the instructions a bit in the original post. Also updated the code slightly.

  • Ok ta. Got it now. Can you make the script popup box user resizeable, or otherwise moveable ? So it can be dragged wherever on the page ?

    • Maybe when I'm free. The thing is, this is a lot of effort for not a lot of gain. It's already a toggle button to show/hide the popup and to make it moveable anywhere on the screen and resizeable is gonna be quite a lot of work involved, not to mention that you'll have to store this setting per site somewhere in Chrome storage. I'm not a software dev either, just dabble in a bit of coding here and there.

    • Have made it moveable anywhere on the screen and keep the position even after a page refresh. Might work on making it resizeable but don't really see the benefit since you can just toggle show/hide. See OP for updated code.

      • Never mind, have made it resizable now too.

  • +2

    Have updated the code to support getting the price adjustment links on Temu.com much more easily and quickly.

    Firstly, load this into your userscript manager:
    https://pastebin.com/TCbZQ7mz

    Then, find this bit in the code:
    https://www.temu.com/w/bgas_refund_difference.html?parent_or…

    Change the session ID to yours. To get your session ID, go to one of your Temu orders and click into it, then check the URL and it should look something like this:
    https://www.temu.com/bgt_order_detail.html?parent_order_sn=P…

    The last bit is your session ID. Put that into the userscript and save it.

    Next, go to your Temu My Orders page. After the page loads, the script will take about 3 seconds to kick in (as it needs to look at the elements on the page after the page is loaded). Then, it should show you links that you can click for claiming the price adjustment credits. Here's an example screenshot:
    https://imgur.com/a/R7rteBX

    Note that the price adjustment is only for orders placed within 30 days. The script will only display price adjustment links for orders placed within 30 days. I usually just go into my Temu orders page once a day and click on the price adjustment links to see if there's anything to claim. I usually get quite a lot of money refunded using this, as the prices on the items I've bought seem to adjust constantly.

    I added this because it was a pain having to get the price adjustment link. Currently, you have to go into each order and then click price adjustment. You can't open multiple orders in multiple tabs easily either. WIth this userscript, I can do it much more quickly. Next step would be to automate the claiming credit process, if I have time.

  • such a treasure. Has to login and say thank you

  • big thank you, works brilliant!

Login or Join to leave a comment