Skip to content

Instantly share code, notes, and snippets.

@davegallant
Last active August 18, 2024 06:40
Show Gist options
  • Save davegallant/70fca6dc6fbb9d55ba456580339ccb22 to your computer and use it in GitHub Desktop.
Save davegallant/70fca6dc6fbb9d55ba456580339ccb22 to your computer and use it in GitHub Desktop.
// The tampermonkey script is now located in https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js
// Chrome extension:
// https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en
// Firefox Add-on:
// https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/
@davegallant
Copy link
Author

Seems to be working fine now.

Hi. My adblock program (Ghostery) is blocking a new script on RFD which isn't cleaned by your script. The link is here: http://go.redirectingat.com/?id=130832X1694315&xs=1&url=https%3A%2F%2Fwww.dell.com%2Fpreferences%2Fsignup%2F%3Fref%3Dcpbc_technologysolutionsandupdates1_cta_secondary_myhome%26amp%3Bc%3Dca%26amp%3Bl%3Den%26amp%3Bs%3Ddhs
Webpage from RFD is here: https://forums.redflagdeals.com/dell-alienware-m15-r7-i9-12900h-rtx3070ti-32gb-qhd-240hz-g-sync-1tb-ssd-1750-after-12-cb-10-coupon-2610195/#p37460956

Seems to be working now.

I've added two more regular expressions here that should fix this:
davegallant/rfd-redirect-stripper@1b3abd9

I'm in the process of making browser extensions for both chrome and firefox. This allows for automatic updating in the background.

They are working now, but are not packaged or published yet. See https://github.com/davegallant/rfd-redirect-stripper#browser-extensions

@YesTrustMe
Copy link

Seems to be working fine now.
I've added two more regular expressions here that should fix this: davegallant/rfd-redirect-stripper@1b3abd9

I'm in the process of making browser extensions for both chrome and firefox. This allows for automatic updating in the background.

They are working now, but are not packaged or published yet. See https://github.com/davegallant/rfd-redirect-stripper#browser-extensions

Wow! That's awesome. Looking forward to this!

@davegallant
Copy link
Author

Firefox extension has been published and approved:
https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/

Not sure how much time I'll have for a Chrome extension atm.

@YesTrustMe
Copy link

Firefox extension has been published and approved: https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/

Not sure how much time I'll have for a Chrome extension atm.

Tampermonkey works well so if you don't get around to it. we still have script 👍

@YesTrustMe
Copy link

YesTrustMe commented May 25, 2023

Looks like RFD is at it again. The script isn't cleaning this link, but my DNS blocker is blocking it: http://go.redirectingat.com/?id=130832X1694315&xs=1&url=https%3A%2F%2Fpublicmobile.ca%2Fen%2Fon%2Fplans

@davegallant
Copy link
Author

Looks like RFD is at it again. The script isn't cleaning this link, but my DNS blocker is blocking it: http://go.redirectingat.com/?id=130832X1694315&xs=1&url=https%3A%2F%2Fpublicmobile.ca%2Fen%2Fon%2Fplans

Do you have an example?

It's working for me here: https://forums.redflagdeals.com/verizon-verizon-free-30-day-trial-esim-compatible-phone-100gb-free-data-2580046/

@YesTrustMe
Copy link

Sorry for the late reply. I didn't get an email confirmation.

Here's a thread to try: https://forums.redflagdeals.com/lenovo-ideacentre-5i-desktop-i7-12700-1tb-hdd-512gb-ssd-16gb-ram-rtx-3060-999-99-2635552/#p37972762

@davegallant
Copy link
Author

Sorry for the late reply. I didn't get an email confirmation.

Here's a thread to try: https://forums.redflagdeals.com/lenovo-ideacentre-5i-desktop-i7-12700-1tb-hdd-512gb-ssd-16gb-ram-rtx-3060-999-99-2635552/#p37972762

Hi. I don't know if there was a recent update to the script, but this link here isn't going anywhere for me:

http://go.redirectingat.com/?id=130832X1694315&xs=1&url=https%3A%2F%2Freolink.com%2Fca%2Fproduct%2Frlc-822a%2F%3Ffbclid%3DIwAR3n-Ya0eeLs-nPwg85IPq00IaxcMBYbBGPKIYsrys0jbZ0q5APBrfNgeD0

It belongs to: https://forums.redflagdeals.com/reolink-reolink-rlc-822a-4k-poe-camera-3x-optical-zoom-person-vehicle-pet-detection-107-24-2641498/#p38079180

@YesTrustMe These are both working for me. Are you getting the latest script or extension from here?

This gist is no longer being maintained.

@YesTrustMe
Copy link

YesTrustMe commented Dec 26, 2023

Hi Dave,

Yes, I occasionally copy and paste the contents if there are issues. However, I let Tampermonkey update on it's own.

For instance, this thread here doesn't work for me: https://forums.redflagdeals.com/dell-wireless-keyboard-mouse-20-minus-whatever-coupons-discounts-rewards-2665134/

Interestingly, sometimes the script doesn't work and other times it does after not working for the same link.

Take for instance the above link. I closed and restarted Chrome and it works with an updated script in the link you provided above. Otherwise, this is what it reads:

The webpage at http://www.jdoqocy.com/click-749547-12105225?url=https%3A%2F%2Fwww.dell.com%2Fen-ca%2Fshop%2Fdell-wireless-keyboard-and-mouse-km3322w%2Fapd%2F580-akcw%2Fpc-accessories might be temporarily down or it may have moved permanently to a new web address.

@davegallant
Copy link
Author

Hi Dave,

Yes, I occasionally copy and paste the contents if there are issues. However, I let Tampermonkey update on it's own.

For instance, this thread here doesn't work for me: https://forums.redflagdeals.com/dell-wireless-keyboard-mouse-20-minus-whatever-coupons-discounts-rewards-2665134/

Interestingly, sometimes the script doesn't work and other times it does after not working for the same link.

Take for instance the above link. I closed and restarted Chrome and it works with an updated script in the link you provided above. Otherwise, this is what it reads:

The webpage at http://www.jdoqocy.com/click-749547-12105225?url=https%3A%2F%2Fwww.dell.com%2Fen-ca%2Fshop%2Fdell-wireless-keyboard-and-mouse-km3322w%2Fapd%2F580-akcw%2Fpc-accessories might be temporarily down or it may have moved permanently to a new web address.

I'm using the Firefox extension and can't reproduce this. Are you copying and pasting from here? This gist is no longer being updated.

@YesTrustMe
Copy link

YesTrustMe commented Dec 29, 2023

Hi Dave,

The link is working today. I am using Chrome. I also copied and pasted from the link you provided above: https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js

I'm unclear on what you mean this gist is no longer updated. Does that mean you are no longer updating the RFD stripper script? If that's the case, I won't bother you any further. I appreciate it working as long as it did.

All the best to you and your family in 2024!

@davegallant
Copy link
Author

davegallant commented Dec 29, 2023

Hi Dave,

The link is working today. I am using Chrome. I also copied and pasted from the link you provided above: https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js

I'm unclear on what you mean this gist is no longer updated. Does that mean you are no longer updating the RFD stripper script? If that's the case, I won't bother you any further. I appreciate it working as long as it did.

All the best to you and your family in 2024!

Hey. To avoid confusion I edited this gist that we're commenting on to link to https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js

Any future issues with the script / extension can be created in the issues tab.

@davegallant
Copy link
Author

Little update:

rfd.fyi is now stripping redirects using the same redirect.json that we've been maintaining here.

@YesTrustMe
Copy link

Thanks Dave! Do we have to do anything different with the redirect.json or can we just copy and paste normally from: https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js ?

@davegallant
Copy link
Author

Thanks Dave! Do we have to do anything different with the redirect.json or can we just copy and paste normally from: https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js ?

Yes, this file should stay in sync with the browser extensions now that it's generated in the github action workflow.

@YesTrustMe
Copy link

Hi Dave. Looks like RFD may have made some changes.

If I go to this url: https://forums.redflagdeals.com/hp-hp-wireless-mouse-200-6-99-hp330-wireless-keyboard-combo-16-99-2699004/ I am redirected to HP's site but what should be happening is the link should reveal the HP items such as mouse and keyboard. Instead, it's showing laptops. Perhaps you can look into?

@davegallant
Copy link
Author

Hi Dave. Looks like RFD may have made some changes.

If I go to this url: https://forums.redflagdeals.com/hp-hp-wireless-mouse-200-6-99-hp330-wireless-keyboard-combo-16-99-2699004/ I am redirected to HP's site but what should be happening is the link should reveal the HP items such as mouse and keyboard. Instead, it's showing laptops. Perhaps you can look into?

Should be fixed now via davegallant/rfd-redirect-stripper#30.

@YesTrustMe
Copy link

Thanks Dave. The updated script isn't working.

Additionally, I had to manually copy it to Tampermonkey as it wasn't updating automatically via source URL: https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js

@davegallant
Copy link
Author

Thanks Dave. The updated script isn't working.

Additionally, I had to manually copy it to Tampermonkey as it wasn't updating automatically via source URL: https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js

Only the browser extension updates the source list automatically.

@YesTrustMe
Copy link

Thanks Dave. The updated script isn't working.
Additionally, I had to manually copy it to Tampermonkey as it wasn't updating automatically via source URL: https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js

Only the browser extension updates the source list automatically.

It still wasn't working. I had to delete your script, create a new one, and copy and paste from scratch. It s now working on RFD. Hopefully the extension will update on it's own.

@YesTrustMe
Copy link

Dave, just another update. Your script isn't updating on Firefox either. I just thought I would let you know.

@davegallant
Copy link
Author

Dave, just another update. Your script isn't updating on Firefox either. I just thought I would let you know.

@YesTrustMe Do you have the steps to reproduce this?

@davegallant
Copy link
Author

I've published an extension on the chrome store now:
https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en

0.5 is requesting more permissions than necessary.

In 0.5.1, I've removed unnecessary scripting and host_permissions. It should be out soon.

@YesTrustMe
Copy link

YesTrustMe commented Jul 26, 2024

Dave, just another update. Your script isn't updating on Firefox either. I just thought I would let you know.

@YesTrustMe Do you have the steps to reproduce this?
Hey Dave,
Sorry for the late reply, I haven't had a chance to respond until now.

All I can do in Tampermonkey is to go to Utilites (pull down menu) and select "check for userscript updates". Your extension isn't updating. I have to copy and paste the script manually. On my Windows 7 laptop, the last update is 2022 (despite forcing an update).

I look forward to your Chrome Extension, that's fantastic news! However, it's not compatible with Windows 7.

Hopefully there will be a Firefox extension. Until then, I'll manually copy the script whenever I have issues on RFD.

@davegallant
Copy link
Author

Dave, just another update. Your script isn't updating on Firefox either. I just thought I would let you know.

@YesTrustMe Do you have the steps to reproduce this?
Hey Dave,
Sorry for the late reply, I haven't had a chance to respond until now.

All I can do in Tampermonkey is to go to Utilites (pull down menu) and select "check for userscript updates". Your extension isn't updating. I have to copy and paste the script manually. On my Windows 7 laptop, the last update is 2022 (despite forcing an update).

I look forward to your Chrome Extension, that's fantastic news! However, it's not compatible with Windows 7.

Hopefully there will be a Firefox extension. Until then, I'll manually copy the script whenever I have issues on RFD.

There is a Firefox Add-on: https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/

Regarding the tampermonkey script updates, I have a suspicion it's not updating because the version is not being bumped in the script: https://github.com/davegallant/rfd-redirect-stripper/blob/2993b464fd180fc2f9545cdc1d9c0a11227d0a8e/script.js#L10

I can look into automatically bumping that version every time the file is modified.

@davegallant
Copy link
Author

@YesTrustMe I added automatic calendar versioning to the tampermonkey script: https://github.com/davegallant/rfd-redirect-stripper/pull/33/files

I quickly tested this and it seems to pull the latest now.

@YesTrustMe
Copy link

@davegallant Sounds good. I haven't tested it out myself as I am using your extension for now as I haven't needed to log into my Windows 7 PC. But if I notice any issues, I'll let you know!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment