Greasy Fork

bookget

某些学校分享电子书,提取图片进行打印。

目前为 2020-02-14 提交的版本。查看 最新版本

// ==UserScript==
// @name              bookget
// @author            songshu
// @description       某些学校分享电子书,提取图片进行打印。
// @version           2020.2.14.01
// @include           https://book.yunzhan365.com/mmdh/lgqf/mobile/*
// @run-at            document-end
// @namespace         https://greasyfork.org/zh-CN/users/songshu
// @license           The MIT License (MIT); http://opensource.org/licenses/MIT
// ==/UserScript==
(function () {
  'use strict';
  //alert("欢迎使用图片提取插件");
  //添加图片一键提取
  
  function getbook(divID) {
}


  var modmenut,
  AnYigetjpg;
  modmenut = document.getElementById('bookContainer');
  if (modmenut) {

    AnYigetjpg = document.createElement('div');
    AnYigetjpg.innerHTML = '<div  style="margin-top: 2px;left:70px;right:auto ; position: fixed;bottom: 10px;background:#28c0c6;border:1px #cdcdcd solid; ">  <button id="getjpg"  name="getjpg" ><span style="font-size: 22px;margin:3px;">获得左侧图片</span>';
    modmenut.insertBefore(AnYigetjpg, modmenut.firstchild);

    modmenut.getElementsByTagName('a') [0].style = 'display:none;';
  } 

}) ();