Free amazon books

5/5/2021, 9:30:43 PM

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Free amazon books
// @namespace   Violentmonkey Scripts
// @match       https://www.amazon.com/*
// @grant       none
// @version     1.001
// @author      Ogun
// @description 5/5/2021, 9:30:43 PM
// ==/UserScript==



var url = window.location.href ;
var isbn = url.match(/dp.\d+/);

isbn = isbn[0].replace("dp/","");
if (isbn != null){
  
  var url_link = "https://libgen.is/search.php?req="+ isbn +  "&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=identifier"
  var link = document.getElementById('acrCustomerReviewLink');

  link.setAttribute('href', url_link);

  var span = document.getElementById('acrCustomerReviewText');
  span.style.color = 'green';
  span.style.fontSize = 'x-large';
  span.innerHTML = 'libgen' ;
}
else{
  
  
}