// ==UserScript== // @name 爱上ASMR - Plus // @namespace https://www.asasmr.top/ // @version 3.2 // @description 删除黑名单用户的评论、收藏夹备注、显示评分投票、标题封面完全显示 // @match http*://*.asasmr3.com/* // @match http*://*.asasmr2.com/* // @match http*://*.asasmr1.com/* // @match http*://*.aisasmr.com/* // @match http*://*.aisasmr.net/* // @license MIT // @grant GM_getValue // @grant GM_setValue // @downloadURL none // ==/UserScript== (function() { 'use strict'; // 初始化黑名单列表 let blacklist = GM_getValue('blacklist', []); let notes = GM_getValue('notes', {}); if (window.location.href.match(/^https:\/\/.*\/author\//) && window.location.href.match(/\?tab=collect.*/)) { // 添加备注区域 const archiveContainers = document.querySelectorAll('#author-page .archive'); archiveContainers.forEach(container => { const articleLink = container.querySelector('article > a'); const noteid = articleLink.href.match(/\/(video|sound)\/([\w-]+\.html)/)[0];// 提取ID const notesArea = document.createElement('textarea'); notesArea.classList.add('hmd-notes-area'); notesArea.placeholder = '添加备注'; notesArea.value = getNotes(noteid) || ''; notesArea.addEventListener('input', () => { setNotes(noteid, notesArea.value); }); const saveNotesButton = document.createElement('button'); saveNotesButton.textContent = '保存备注'; saveNotesButton.classList.add('hmd-save-notes-button'); saveNotesButton.addEventListener('click', () => { setNotes(noteid, notesArea.value); alert('备注已保存!'); }); container.appendChild(notesArea); container.appendChild(saveNotesButton); }); } function getNotes(id) { if (!notes[id]) { notes[id] = []; } return notes[id].join('\n'); } function setNotes(id, value) { notes[id] = value.split('\n'); GM_setValue('notes', notes); } // 创建