Greasy Fork is available in English.

📘微信读书阅读助手

读书人用的脚本

// ==UserScript==
// @name         📘微信读书阅读助手
// @namespace    https://github.com/mefengl
// @version      6.6.3
// @description  读书人用的脚本
// @author       mefengl
// @match        https://weread.qq.com/*
// @match        https://chat.openai.com/*
// @require      https://cdn.staticfile.org/jquery/3.6.1/jquery.min.js
// @grant        GM_openInTab
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_addValueChangeListener
// @run-at       document-end
// @license      MIT
// ==/UserScript==

const pageSound1 = 'data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjEyLjEwMAAAAAAAAAAAAAAA//t4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAOAAAZUAAiIiIiIiIiMzMzMzMzM0RERERERERVVVVVVVVVZmZmZmZmZnd3d3d3d3eIiIiIiIiImZmZmZmZmZmqqqqqqqqqu7u7u7u7u8zMzMzMzMzd3d3d3d3d7u7u7u7u7v////////8AAAAATGF2ZgAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAGVCIc9T6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//t4RAAAAj4BRthhEABUALiwJEMAC3CDLaMEVgFLiep88wg+AAhBACICKfDBMUEBQ4oCAM/Gny+XP96naZPZLgg5mnlFvy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v7KjVGrnZvn4OA/EIai4G4qK3b2aikZDvovI09w1YjZcEIQxXhHyLaFShyLOpGKlvT5O2ocBe7sDafb4kPcOYfkctSmEQRIEMSjorAh01HpCMFJIdcQw/QyxVaXyHU+xehx8zCBJRoDFHTV7DhgsNGlHdk1UaGs';

(function () {
  ('use strict')

  // 书城运行脚本闪烁严重,直接跳过
  if (location.pathname.includes('category'))
    return

  // 功能1️⃣:宽屏
  $(() => {
    $('.app_content').css('maxWidth', 1000)
    $('.readerTopBar').css('display', 'flex')
  })

  // 功能2️⃣:自动隐藏顶栏和侧边栏,上划显示,下滑隐藏
  let windowTop = 0
  $(window).scroll(() => {
    const scrollS = $(window).scrollTop()
    if (scrollS >= windowTop + 100) {
      // 下滑隐藏
      $('.readerTopBar, .readerControls').fadeOut()
      windowTop = scrollS
    }
    else if (scrollS < windowTop) {
      // 上划显示
      $('.readerTopBar, .readerControls').fadeIn()
      windowTop = scrollS
    }
  })

  // 功能3️⃣:一键搜📗豆瓣阅读或📙得到阅读
  // 监听页面是否是搜索页面
  const get_searchBox = () => $('.search_input_text')[0]
  const handleListenChange = (mutationsList) => {
    const className = mutationsList[0].target.className
    if (/search_show/.test(className)) {
      // 开始添加按钮
      if (get_searchBox().parentElement.lastChild.tagName === 'BUTTON')
        return;
      // 添加按钮们
      [
        { name: '豆瓣读书', color: '#027711', searchUrl: 'https://search.douban.com/book/subject_search?search_text=' },
        { name: '豆瓣阅读', color: '#389eac', searchUrl: 'https://read.douban.com/search?q=' },
        { name: '得到阅读', color: '#b5703e', searchUrl: 'https://www.dedao.cn/search/result?q=' },
        { name: '孔夫子', color: '#701b22', searchUrl: 'https://search.kongfz.com/product_result/?key=' },
        { name: '多抓鱼', color: '#497849', searchUrl: 'https://www.duozhuayu.com/search/book/' },
      ].forEach(({ name, color, searchUrl }) =>
        $('.search_input_text').parent().append(
          $('<button>').text(`搜 ${name}`)
            .css({ backgroundColor: color, color: '#fff', borderRadius: '1em', margin: '.5em', padding: '.5em', cursor: 'pointer' })
            .click(() => {
              GM_openInTab(searchUrl + $('.search_input_text').val(), { active: true, setParent: true })
            }),
        ),
      )

      // 建议元素下移,避免遮挡按钮
      $('.search_suggest_keyword_container').css('margin-top', '2.3em')
    }
  }
  const mutationObserver = new MutationObserver(handleListenChange)
  mutationObserver.observe(document.body, { attributes: true, attributeFilter: ['class'] })

  // 菜单更新的逻辑
  const default_menu_all = {
    simplify_underline: true,
    play_turning_sound: false,
    simplify_main_page: true,
    middle_click_to_next_page: true,
  }

  // 只对使用 chatgpt 的读书人开启复制自动询问
  $(() => location.href.includes('chat.openai') && GM_setValue('openai', true))
  if (GM_getValue('openai'))
    default_menu_all.auto_ask_chatgpt = false

  const menu_all = { ...default_menu_all, ...GM_getValue('menu_all', {}) }
  const menu_id = GM_getValue('menu_id', {})

  function toggleSetting(name) {
    menu_all[name] = !menu_all[name]
    GM_setValue('menu_all', menu_all)
  }

  function updateMenuCommand(name, description, needReload = false) {
    if (menu_id[name])
      GM_unregisterMenuCommand(menu_id[name])
    menu_id[name] = GM_registerMenuCommand(description + (menu_all[name] ? '✅' : '❌'), () => {
      toggleSetting(name)
      update_menu()
      if (needReload)
        location.reload()
    })
  }

  function update_menu() {
    updateMenuCommand('simplify_underline', ' 简化划线:', true)
    updateMenuCommand('play_turning_sound', ' 翻页声:')
    updateMenuCommand('simplify_main_page', ' 简化首页:', true)
    updateMenuCommand('auto_ask_chatgpt', ' 自动询问:')
    updateMenuCommand('middle_click_to_next_page', ' 中键翻页:', true)

    GM_setValue('menu_id', menu_id)
  }
  update_menu()

  // 功能4️⃣:简化划线菜单,包括想法页面
  if (menu_all.simplify_underline) {
    // 监听页面是否弹出工具框
    const handleListenChange = (mutationsList) => {
      const className = mutationsList[0].target.className
      if (/reader_toolbar_container/.test(className)) {
        // 去除划线颜色选择框
        // 简单的实现,去除 10s 内出现的颜色选择框
        let count = 0
        const intervalId = setInterval(() => {
          if (count >= 100) {
            clearInterval(intervalId)
          }
          else {
            $('.reader_toolbar_color_container').remove()
            count++
          }
        }, 100)
        // 去除划线工具栏多余的按钮
        $('.underlineBg, .underlineHandWrite, .query').remove()
        // 在这里完成简化想法页面的功能
        $('#readerReviewDetailPanel').css('padding-top', '12px')
        $('#readerReviewDetailPanel .title').remove()
        // 如果找到了有删除划线的按钮,就隐藏有直线划线的按钮,否则显示(因为之前隐藏了)
        $('.removeUnderline').length
          ? $('.underlineStraight').hide()
          : $('.underlineStraight').show()
        // 划线后关闭工具栏
        $('.toolbarItem.underlineStraight, .toolbarItem.underlineBg, .toolbarItem.underlineHandWrite')
          .one('click', () => {
            $('.reader_toolbar_container').remove()
            // 划线高亮去除
            $('.wr_selection').remove()
          })
      }
    }
    const mutationObserver = new MutationObserver(handleListenChange)
    mutationObserver.observe(document.body, { attributes: true, subtree: true })
  }

  // 功能5️⃣:加入翻页的仪式感
  let isOdd = true
  const [oddSound, evenSound] = [
    pageSound1,
    pageSound2,
  ].map(src => new Audio(src))
  function trackReading() {
    if (menu_all.play_turning_sound) {
      (isOdd ? oddSound : evenSound).play()
      isOdd = !isOdd
    }
  }

  document.body.addEventListener('click', (e) => {
    if (e.target.matches('.readerFooter_button'))
      trackReading()
  }, true)

  // 功能6️⃣:首页及书架页面简化
  setTimeout(() => {
    menu_all.simplify_main_page && $(() => {
      if (location.pathname.includes('shelf')) {
        $(
          '.shelf_header, .navBar_link_ink, .navBar_link_Phone',
        ).remove()
        // 书架页面上多余的separator
        $('.navBar_separator').slice(1, 4).remove()
      }
      const mainPageRemover = () =>
        $('.ranking_topCategory_container, .recommend_preview_container, .app_footer_copyright').remove()
      mainPageRemover()
      setTimeout(mainPageRemover, 800)
      // 阅读界面的听书,手机阅读,微信输入法的按钮
      $('.lecture, .download, .wetype').hide()
      $('.readerTopBar').stop().css({ maxWidth: '1000px', opacity: '0.6' })
      $('.readerControls').stop().css('opacity', '0.8')
    })
  }, 200)

  // 功能7️⃣:快捷键
  // Ctrl/Command + Enter,提交笔记(不用点提交按钮)
  {
    // 监听页面是否是想法页面
    const handleListenChange = (mutationsList) => {
      const className = mutationsList[1].target.className;
      /readerWriteReviewPanel/.test(className) && $('.readerWriteReviewPanel #WriteBookReview').keydown((e) => {
        const isCtrlEnter = (e.keyCode === 10 || e.keyCode === 13) && (e.ctrlKey || e.metaKey)
        isCtrlEnter && $('.writeReview_submit_button').click()
      })
    }
    const mutationObserver = new MutationObserver(handleListenChange)
    mutationObserver.observe(document.body, { attributes: true, subtree: true })
  }
  // 鼠标中键,下一节/页/章
  if (location.pathname.includes('reader') && menu_all.middle_click_to_next_page) {
    const triggerNextPage = () => {
      document.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', code: 'ArrowRight', keyCode: 39, charCode: 0 }))
      if (menu_all.play_turning_sound) {
        (isOdd ? oddSound : evenSound).play()
        isOdd = !isOdd
      }
    }
    window.addEventListener('mousedown', e => e.button === 1 && triggerNextPage());
    // 鼠标中键点击链接,不用触发
    [...document.querySelectorAll('a')].forEach(a => a.addEventListener('mousedown', e => e.stopPropagation()))
  }

  // 功能8️⃣:自动询问 ChatGPT
  const prompts = [
    (book_title, sentence) => `《${book_title}》中的句子:${sentence}\n用简单的现代汉语来说,就是:`,
    (book_title, sentence) => `《${book_title}》中的句子:${sentence}\n用现实生活中的例子、故事或新闻来说,就是:`,
    (book_title, sentence) => `《${book_title}》中的句子:${sentence}\n这句话相关历史和背景:`,
    (book_title, sentence) => `《${book_title}》中的句子:${sentence}\n想要深入了解这句话,推荐别的句子、文章、书籍,附上理由:`,
  ]
  menu_all.auto_ask_chatgpt && $(() => {
    // 监听页面是否弹出工具框
    const handleListenChange = (mutationsList) => {
      const className = mutationsList[0].target.className
      if (/reader_toolbar_container/.test(className)) {
        let click_id
        $('.toolbarItem').one('click', () => click_id = setTimeout(() => $('.toolbarItem.copy').trigger('click'), 100))
        $('.toolbarItem.copy').one('click', () => {
          clearTimeout(click_id)
          setTimeout(async () => {
            // 现在复制的段落已经在系统剪贴板中了,提取到变量中
            const copied_text = await navigator.clipboard.readText()
            const book_title = $('.readerTopBar_title_link').text()
            const prompt_texts = prompts.map(p => p(book_title, copied_text))
            // 保存到本地
            GM_setValue('prompt_texts', [])
            GM_setValue('prompt_texts', prompt_texts)
          }, 100)
        })
        // 删除划线就不用触发ChatGPT了
        $('.toolbarItem.removeUnderline').one('click', () => clearTimeout(click_id))
      }
    }
    const mutationObserver = new MutationObserver(handleListenChange)
    mutationObserver.observe(document.body, { attributes: true, subtree: true })
  })
  // ChatGPT 页面响应prompt_texts
  const chatgpt = {
    getSubmitButton() {
      const form = document.querySelector('form')
      if (!form)
        return
      const buttons = form.querySelectorAll('button')
      const result = buttons[buttons.length - 1]
      return result
    },
    getTextarea() {
      const form = document.querySelector('form')
      if (!form)
        return
      const textareas = form.querySelectorAll('textarea')
      const result = textareas[0]
      return result
    },
    getRegenerateButton() {
      const form = document.querySelector('form')
      if (!form)
        return
      const buttons = form.querySelectorAll('button')
      for (let i = 0; i < buttons.length; i++) {
        const buttonText = buttons[i]?.textContent?.trim().toLowerCase()
        if (buttonText?.includes('regenerate'))
          return buttons[i]
      }
    },
    getStopGeneratingButton() {
      const form = document.querySelector('form')
      if (!form)
        return
      const buttons = form.querySelectorAll('button')
      if (buttons.length === 0)
        return
      for (let i = 0; i < buttons.length; i++) {
        const buttonText = buttons[i]?.textContent?.trim().toLowerCase()
        if (buttonText?.includes('stop'))
          return buttons[i]
      }
    },
    send(text) {
      const textarea = this.getTextarea()
      if (!textarea)
        return
      textarea.value = text
      textarea.dispatchEvent(new Event('input', { bubbles: true }))
      textarea.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true }))
    },
    onSend(callback) {
      const textarea = this.getTextarea()
      if (!textarea)
        return
      textarea.addEventListener('keydown', (event) => {
        if (event.key === 'Enter' && !event.shiftKey)
          callback()
      })
      const sendButton = this.getSubmitButton()
      if (!sendButton)
        return
      sendButton.addEventListener('mousedown', callback)
    },
    isGenerating() {
      return this.getSubmitButton()?.firstElementChild?.childElementCount === 3
    },
  }

  let last_trigger_time = +new Date()
  $(() => {
    if (location.href.includes('chat.openai')) {
      GM_addValueChangeListener('prompt_texts', (name, old_value, new_value) => {
        if (!new_value.length)
          return

        if (+new Date() - last_trigger_time < 500)
          return

        last_trigger_time = +new Date()
        GM_setValue('prompt_texts', [])
        setTimeout(async () => {
          const prompt_texts = new_value
          if (prompt_texts.length > 0) {
            // 从本地取出 prompt_texts
            let firstTime = true
            while (prompt_texts.length > 0) {
              if (!firstTime)
                await new Promise(resolve => setTimeout(resolve, 2000))

              if (!firstTime && chatgpt.isGenerating())
                continue

              firstTime = false
              const prompt_text = prompt_texts.shift()
              chatgpt.send(prompt_text)
            }
          }
        }, 0)
      })
    }
  })
})()