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/
@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