// ==UserScript==
// @name Bypass paywalls for scientific documents
// @namespace StephenP
// @version 1.0
// @description Bypass paywalls for scientific documents by downloading them from sci-hub instead of paying something like 50 bucks for each paper. This script adds a download button on Scopus, which leads to sci-hub.bz. In this way you can get free access to scientific papers even if you (or your university) can't afford their prices.
// @author StephenP
// @match https://www.scopus.com/record/display.uri?*
// @grant none
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
var fullDocument=document.querySelector('[title="Full Text(opens in a new window)"]');
fullDocument.href=fullDocument.href.slice(54);
var doi=document.getElementById("recordDOI").innerHTML;
var section=document.getElementById("outwardLinks");
section.removeChild(section.lastChild);
fullDocument.parentNode.innerHTML+=('
Donate to Sci-Hub project|');
})();