Browse Source

remove libri.de, bump version

master
Max Mehl 6 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 @@
1 1
 // ==UserScript==
2 2
 // @name           FSFE Affiliate Programs + extras (auto-SSL...)
3 3
 // @namespace      https://git.fsfe.org/FSFE/affiliate-script
4
-// @description    Modify Amazon and Libri.de-links to support the FSFE, always use SSL and shorten links (only Amazon)
5
-// @version       0.4
4
+// @description    Modify Amazon links to support the FSFE, always use SSL and shorten links
5
+// @version        0.5
6 6
 
7 7
 // Contains the getASIN()-function from:
8 8
 // https://userscripts-mirror.org/scripts/review/3284 by Jim Biancolo
@@ -76,12 +76,5 @@ function getASIN(href) {
76 76
 //                     links[i].setAttribute("href", curLink + "?tag="+affiliateID);
77 77
             }
78 78
         }
79
-
80
-        // libri.de / bookzilla
81
-        else if (curLink.match(/https?\:\/\/(www\.)?libri\.de/i))
82
-        {
83
-            links[i].setAttribute("href", curLink.replace(/https?\:\/\/(www\.)?libri\.de/i,
84
-                                  "https://www.bookzilla.de"));
85
-        }
86 79
     }
87 80
 })();

Loading…
Cancel
Save