快速搜论文、下载论文的方法 2021-01-10 技巧 暂无评论 1254 次阅读 ## www.x-mol.com 1. Chrome浏览器,或者新版Edge浏览器 2. [IDM下载器](https://www.proup.club/usr/uploads/2021/01/1199942905.rar) (为了多线程下载) 3. 浏览器安装 暴力猴 插件 4. 点暴力猴图标,创建新脚本,粘贴以下内容: ```Javascript // ==UserScript== // @name X-MOL论文搜索 - x-mol.com // @namespace Violentmonkey Scripts // @match https://www.x-mol.com/paper/search/q // @match https://www.x-mol.com/paper/* // @grant none // @version 1.0 // @author - // @description 2021/1/9 下午3:43:01 // ==/UserScript== function projsinit() { var projstool=document.createElement('div') projstool.setAttribute("style","position:fixed;left:10px;top:100px;z-index:99999;") projstool.setAttribute("id","projstool.proup.club") document.getElementsByTagName("body")[0].appendChild(projstool) styleEl = document.createElement('style') styleEl.innerText=" \ .projsbtn{ \ border: none; \ color: white; \ padding: 3px 5px; \ border-radius: 16px; \ text-align: center; \ text-decoration: none; \ display: inline-block; \ font-size: 14px; \ margin: 2px 2px; \ transition-duration: 0.4s; \ cursor: pointer; \ } \ .projsbtn.projsbtn-g{ \ background-color: white; \ color: black; \ border: 2px solid #4CAF50; \ } \ .projsbtn.projsbtn-g:hover { \ background-color: #4CAF50; \ color: white; \ } \ .projsbtn.projsbtn-b { \ background-color: white; \ color: black; \ border: 2px solid #008CBA; \ } \ \ .projsbtn.projsbtn-b:hover { \ background-color: #008CBA; \ color: white; \ } \ \ .projsbtn.projsbtn-r { \ background-color: white; \ color: black; \ border: 2px solid #f44336; \ } \ \ .projsbtn.projsbtn-r:hover { \ background-color: #f44336; \ color: white; \ } \ \ .projsbtn.projsbtn-w { \ background-color: white; \ color: black; \ border: 2px solid #e7e7e7; \ } \ \ .projsbtn.projsbtn-w:hover { \ background-color: #e7e7e7; \ } \ \ .projsbtn.projsbtn-k { \ background-color: white; \ color: black; \ border: 2px solid #555555; \ } \ .projsbtn.projsbtn-k:hover { \ background-color: #555555; \ color: white; \ } \ "; document.head.appendChild(styleEl); return projstool; } function projsbtn(text='button',func='console.log("click\ncolor:r,g,b,k,w")',color='g') { let projstool=document.getElementById('projstool.proup.club') if(projstool==null) projstool=projsinit() let btn=document.createElement('button') btn.setAttribute("class","projsbtn projsbtn-"+color) btn.setAttribute("onclick",func) btn.innerText=text projstool.appendChild(btn) let br=document.createElement('br') projstool.appendChild(br) return btn; } window.lis = document.querySelectorAll('.magazine-senior-search-results-list > ul >li') var scihub_link = 'https://sci-hub.st/' window.proupSciHub = function(i) { li = window.lis[i] doi = li.innerText.match("DOI:(.*)")[1] window.open(scihub_link+doi) let ifr=document.createElement('iframe') ifr.setAttribute("src",scihub_link+doi) ifr.setAttribute("style","height:34px") ifr.setAttribute("scrolling","yes") li.lastElementChild.append(ifr) li.querySelector('input[type="checkbox"]').checked=true } window.download_All = function() { for(var i=0;i 标签: 脚本, 学术 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭