paper search

search paper in scihub

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         paper search
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  search paper in scihub
// @author       www
// @match        *://ieeexplore.ieee.org/document/*
// @match        *://ieeexplore.ieee.org/abstract/document/*
// @match        *://link.springer.com/article/*
// @grant        none

// ==/UserScript==]]

function go_scihub(){
    window.open("http://sci-hub.tw/" + window.location.href, "sci-hub");
}
function run () {
    
    var menu = $("<div>").text('scihub');;
    menu.attr("id", "scihub");
    menu.bind("click",go_scihub );

    $("body").append(menu);

    $("body").contextmenu(function(e) {
        $("#scihub").css("position", "fixed");
        $("#scihub").css("z-index", 0);
        $("#scihub").css("left", e.clientX);
        $("#scihub").css("top", e.clientY);

        e.preventDefault();
    });
}


run();