scholar2readpaper

jump from google scholar to readpaper

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         scholar2readpaper
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  jump from google scholar to readpaper
// @author       Yuhang
// @include      https://scholar.google.*/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
var papers = document.querySelectorAll('.gs_ri');

console.log(papers)
papers.forEach(function(item){
    var title = item.querySelector("a").innerText;
    var newurl = 'https://readpaper.com/search/'+encodeURIComponent(title);
    var loc = item.getElementsByClassName("gs_ggs gs_fl");

    var obj1 = document.createElement("a");
    obj1.href = newurl;
    obj1.target = '_blank';
    obj1.appendChild(document.createTextNode('ReadPaper'));
	item.querySelector('.gs_ri .gs_fl').insertBefore(obj1,item.querySelector('.gs_ri .gs_fl .gs_or_mor'));
});
})();