Greasy Fork

Greasy Fork is available in English.

东方财富研报OpenPDF

浏览研报页面直接打开PDF

// ==UserScript==
// @name         东方财富研报OpenPDF
// @namespace    http://tampermonkey.net/
// @version      0.11
// @description  浏览研报页面直接打开PDF
// @author       Hunk
// @match        *://data.eastmoney.com/*
// @icon         https://data.eastmoney.com/favicon.ico
// @grant        none
// @license MIT
// ==/UserScript==


(function() {
    'use strict';
    var hy_pdf=document.querySelector('.pdf-link');
    if(hy_pdf){
        console.log(hy_pdf.href);
        location.href=hy_pdf.href;
    }
    var gg_pdf=document.querySelector('a[style="color: #039; text-decoration: underline; font-family: 宋体; font-size: 14px;"]');
    if(gg_pdf){
        console.log(gg_pdf.href);
        location.href=gg_pdf.href;
    }

})();