Greasy Fork

Greasy Fork is available in English.

General URL Cleaner

Cleans URL's from various popular sites.

< 脚本General URL Cleaner的反馈

评价:好评 - 脚本运行良好

§
发表于:2016-12-22

Amazon Look Inside breaking

Under Greasemonkey in Firefox, the script appears to break the Look Inside feature for books. The address bar appears to flash an Amazon URL with an anchor that is quickly cleaned and replaced. Disabling the script allows the feature to work. In Chrome, Look Inside works fine with the script running under Tampermonkey.

Knowbody作者
§
发表于:2016-12-25

Can you give an example of a URL it breaks?

§
发表于:2016-12-26

Look Inside at https://www.amazon.com/dp/0671631985/ doesn't work for me.

Knowbody作者
§
发表于:2017-01-16
编辑于:2017-01-16

OK, I finally got time to have a look at this. I just needed to stop it deleting the hash if it starts with "#reader_", by replacing the standard deleteHash(); function for Amazon with this: onhashchange = function() { if (!loc.hash.startsWith('#reader_')) history.replaceState(null,null,loc.href.replace(loc.hash,'')); };

§
发表于:2017-01-16

Excellent. Thanks for the good work.

发表回复

登录以发表回复。