您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
auto save the search results
// ==UserScript== // @name EBSCO results auto-save // @namespace http://tampermonkey.net/ // @version 0.1 // @description auto save the search results // @author Js // @match https://web.p.ebscohost.com/ehost/resultsadvanced* // @icon https://www.google.com/s2/favicons?sz=64&domain=ebscohost.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Click share-results button to save the results on the page function saveResults() { const saveBtn = document.getElementById("lnkAddAll_ctrlSaveToFolder"); if (saveBtn) saveBtn.click(); // add else } // Click next page function nextPage() { const nextPageBtn = document.getElementById("ctl00_ctl00_MainContentArea_MainContentArea_bottomMultiPage_lnkNext"); if (nextPageBtn) nextPageBtn.click(); } // load page and run functions window.onload = function() { saveResults(); nextPage(); } })();