您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在右键菜单中添加"在谷歌学术中搜索" Add "Search in Google Scholar" in right-click menu.
当前为
// ==UserScript== // @name 在谷歌学术中搜索 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 在右键菜单中添加"在谷歌学术中搜索" Add "Search in Google Scholar" in right-click menu. // @author BarryZZJ // @icon https://scholar.google.com/favicon.ico // @include http*://* // @grant GM_openInTab // @run-at context-menu // @license GNU // ==/UserScript== (function() { 'use strict'; // 获取选中部分 var userSelection, text; if (window.getSelection) { //现代浏览器 userSelection = window.getSelection(); } else if (document.selection) { //IE浏览器 考虑到Opera,应该放在后面 userSelection = document.selection.createRange(); } if (!(text = userSelection.text)) { text = userSelection.toString(); } console.log(text); if (text) GM_openInTab("https://scholar.google.com/scholar?q="+text, {active:true}); })();