您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
renames links for easy batch download
当前为
// ==UserScript== // @name Springerlink rename download links // @namespace rename@springerlink // @include http://han.srv.meduniwien.ac.at/han/eBook-Katalog/link.springer.com/* // @include http://link.springer.com/* // @require http://code.jquery.com/jquery-1.9.1.min.js // @grant none // @version 1 // @description renames links for easy batch download // ==/UserScript== $(document).ready(main); function main() { $('.toc-item.chapter-item').each(function(){ console.log($(this).find('.title').text()); chapter = ($(this).find('a.pdf-link').attr('href').split('.pdf')[0].split('_').reverse()[0]) chapter = "0000000000000000".substring(0,3-chapter.length)+chapter; $(this).find('a.pdf-link').text(chapter + ' ' + $(this).find('.title').text()); }); }