Open in Goodreads

Adds a button to Amazon book pages to redirect to Goodreads page based on ASIN/ISBN

< 脚本Open in Goodreads的反馈

提问/评论

§
发表于:2024-10-31

The latest update seems to make the button visible on all amazon product pages & not just books pages. Just wanted to check and see if some simple fix to this can be arranged...

SirGryphin作者
§
发表于:2024-10-31

Reverted back to old code and just added MutationObserver so button shows. Then I noticed even older version was showing button on non-book pages. So I added a check for Publisher Date before button is shown. This seems to be easiest way to only show button on Book pages. Let me know if you have any other problems.

§
发表于:2024-11-01

Its working good now with one caveat. I explicitly need to change this part `// @match https://*.amazon.*/*` to `// @match https://*.amazon.com/*` for the button to start appearing in the first hand. Probably due to @match not supporting such a scenario (https://github.com/Tampermonkey/tampermonkey/issues/1878)

SirGryphin作者
§
发表于:2024-11-01

Changed and update code back to how it was before with multiple domains listed. I use ViolentMonkey and it worked find on that. Hope this helps.

§
发表于:2024-11-01

All good now:)

发表回复

登录以发表回复。