Created
March 6, 2011 07:16
-
-
Save chihchun/857101 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Fix anobii wish list link | |
| // @include http://www.anobii.com/books/* | |
| // @description replace "/wishlist?v=01202429d0a8178ec4" with "/wishlist?itemIdFade=01202429d0a8178ec4" | |
| // ==/UserScript== | |
| var allLinks = document.links; | |
| if (allLinks != null) { | |
| for (i = 0; i <allLinks.length; ++i) { | |
| if (allLinks [i].href.indexOf ("/wishlist?v=") > 0) { | |
| allLinks [i].href = allLinks [i].href.replace ("/wishlist?v=", "/wishlist?itemIdFade="); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment