您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically copy the BibTeX citation from Google Scholar to clipboard and navigate back or close the page
// ==UserScript== // @name Google Scholar BibTeX Auto Copy and Navigate // @namespace http://tampermonkey.net/ // @version 0.1 // @description Automatically copy the BibTeX citation from Google Scholar to clipboard and navigate back or close the page // @author rsic // @match https://scholar.googleusercontent.com/scholar.bib* // @grant GM_setClipboard // @grant GM_notification // @license MIT // ==/UserScript== (function() { 'use strict'; // 获取页面内容 const bibtexContent = document.body.innerText; // 将内容复制到剪切板 GM_setClipboard(bibtexContent); // 显示通知 GM_notification({ text: 'BibTeX citation copied to clipboard!', title: 'Success', timeout: 2000 }); // 判断是否可以返回上一页 if (window.history.length > 1) { // 如果历史记录有上一页,返回上一页 window.history.back(); } else { // 如果没有上一页,关闭当前页面 window.close(); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址