Skip to content

Instantly share code, notes, and snippets.

@chihchun
Created March 6, 2011 07:16
Show Gist options
  • Save chihchun/857101 to your computer and use it in GitHub Desktop.
Save chihchun/857101 to your computer and use it in GitHub Desktop.
// ==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