// ==UserScript== // @name 豆瓣侠 // @version 1.0.0 // @description 云盘搜索(5个站点) + 电影简介生成(获取豆瓣原图 + wsrv.nl 1080p处理) // @author 全网搜:wpys.cc // @match https://movie.douban.com/subject/* // @match https://book.douban.com/subject/* // @match https://music.douban.com/subject/* // @grant GM_setClipboard // @grant GM_addStyle // @require https://code.jquery.com/jquery-3.6.0.min.js // ==/UserScript== (function() { 'use strict'; GM_addStyle(` .c-aside { margin-bottom: 30px; } .c-aside h2 { font-size: 14px; color: #333; margin-bottom: 10px; } .c-aside-body a { border-radius: 6px; color: #006400; display: inline-block; margin: 0 8px 8px 0; padding: 0 8px; text-align: center; width: 65px; background-color: #f5f5f5; text-decoration: none; font-size: 12px; line-height: 24px; font-weight: bold; } .c-aside-body a:hover { background-color: #e8e8e8; } #md-generator { margin: 20px 0; padding: 15px; background: #f9f9f9; border-radius: 6px; border-left: 4px solid #00a65a; } #md-generator-btn { background: #00a65a; color: white; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: bold; } #md-generator-btn:hover { background: #008d4c; } #md-preview { margin-top: 15px; padding: 15px; background: #f5f5f5; border-radius: 4px; border: 1px solid #ddd; display: none; } #md-preview pre { margin: 0; white-space: pre-wrap; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.6; background: #f5f5f5; padding: 10px; } .preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #ccc; } .preview-header-left { display: flex; align-items: center; } .preview-header-left span { font-weight: bold; margin-right: 15px; } #md-copy-btn { background: #337ab7; color: white; border: none; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; } #md-copy-btn:hover { background: #286090; } #md-copy-btn.copied { background: #5cb85c; } #doudanxia-settings { position: fixed; top: 80px; right: 20px; width: 380px; background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; padding: 20px; font-size: 13px; } .settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #00a65a; } .settings-header h3 { margin: 0; color: #00a65a; } .settings-section { margin-bottom: 20px; padding: 12px; background: #f9f9f9; border-radius: 6px; } .site-tag { display: inline-block; background: #e8e8e8; padding: 4px 12px; border-radius: 20px; font-size: 12px; margin: 0 5px 5px 0; } .close-btn { background: #f0f0f0; border: none; padding: 5px 20px; border-radius: 20px; cursor: pointer; font-size: 12px; } .close-btn:hover { background: #e0e0e0; } .view-original { display: inline-block; margin-left: 10px; font-size: 12px; color: #00a65a; text-decoration: none; } .view-original:hover { text-decoration: underline; } `); const PAN_SITES = [ { name: '网盘论坛', url: 'https://wpzy.cc/?q=' }, { name: '网盘影视', url: 'https://wpzy.me/?q=' }, { name: '网盘资源社', url: 'https://www.wpzy.cc/?q=' }, { name: '全网搜索', url: 'https://wpys.cc/s/' }, { name: '博哥影视', url: 'https://blog.wpys.cc/search/' } ]; $(document).ready(function() { const pageType = location.host.split('.')[0]; const subjectId = location.href.match(/(\d{7,8})/); if (!subjectId) return; let title = $('#content h1 span').first().text().trim(); let searchTitle = title; if (title.includes(' ')) { searchTitle = title.split(' ')[0]; } const searchKeyword = encodeURIComponent(searchTitle); $('#content div.aside').prepend(`