Browse Source

remove libri.de, bump version

master
Max Mehl 8 months ago
parent
commit
f945a574ef
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 2 additions and 9 deletions
  1. 2
    9
      fsfe_affiliate.user.js

+ 2
- 9
fsfe_affiliate.user.js View File

@@ -1,8 +1,8 @@
// ==UserScript==
// @name FSFE Affiliate Programs + extras (auto-SSL...)
// @namespace https://git.fsfe.org/FSFE/affiliate-script
// @description Modify Amazon and Libri.de-links to support the FSFE, always use SSL and shorten links (only Amazon)
// @version 0.4
// @description Modify Amazon links to support the FSFE, always use SSL and shorten links
// @version 0.5

// Contains the getASIN()-function from:
// https://userscripts-mirror.org/scripts/review/3284 by Jim Biancolo
@@ -76,12 +76,5 @@ function getASIN(href) {
// links[i].setAttribute("href", curLink + "?tag="+affiliateID);
}
}

// libri.de / bookzilla
else if (curLink.match(/https?\:\/\/(www\.)?libri\.de/i))
{
links[i].setAttribute("href", curLink.replace(/https?\:\/\/(www\.)?libri\.de/i,
"https://www.bookzilla.de"));
}
}
})();

Loading…
Cancel
Save