您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
修改部分跳转链接,去除了部分按钮
当前为
// ==UserScript== // @name 手机端豆瓣网页修改 // @namespace 移动端豆瓣页面优化 // @version 0.1 // @description 修改部分跳转链接,去除了部分按钮 // @author fukvqz // @match https://m.douban.com/group/topic/* // @icon https://www.google.com/s2/favicons?domain=douban.com // @grant none // ==/UserScript== (function() { 'use strict'; if (window.location.href.indexOf('topic') > 0) { try { document.getElementById('tbl-next-up').remove(); } catch (e) { } document.querySelector('.more_topic + section').remove(); document.querySelector('.note-content + div').remove(); document.querySelectorAll('.more_topic')[1].nextElementSibling.remove(); //try {document.querySelector('.TalionNav-static').remove();} catch(e) {} document.querySelector('.TalionNav-static .icon-wrap').removeAttribute('href'); document.querySelector('.TalionNav-static .info').removeAttribute('href'); document.querySelector('.TalionNav-static .btn').remove(); document.querySelector('.TalionNav-primary .logo').removeAttribute('href'); document.querySelector('.opreations').remove(); var thcm = document.querySelectorAll('.meta-text .extra-info'); for (let i = 0; i < thcm.length; i++) { thcm[i].parentNode.removeAttribute('href'); } var rppl = document.querySelectorAll('.meta-text'); for (let i = 0; i < rppl.length; i++) { rppl[i].firstElementChild.href = rppl[i].firstElementChild.href.split('=')[3]; } var rppi = document.querySelectorAll('.reply-meta'); for (let i = 0; i < rppi.length; i++) { rppi[i].firstElementChild.href = rppi[i].firstElementChild.href.split('=')[3]; } document.querySelector('.show-all').remove(); var moia = document.querySelectorAll("span[class='oia']"); for (let i = 0; i < moia.length; i++) { moia[i].remove(); } try { document.querySelector('.oia-prompt-box .prompt .opt .cancel').click(); } catch (e) { } document.querySelector('.oia-wrap .oia-btn').innerText = '查看小组更多内容'; var owp = document.querySelectorAll('.oia-wrap'); owp[0].remove(); owp[2].remove(); owp[1].firstElementChild.href = owp[1].firstElementChild.href.split('=')[3]; var jn = document.querySelectorAll('.join'); for (let i = 0; i < jn.length; i++) { jn[i].remove(); } var tpitm = document.querySelectorAll('.more_topic .topic-content .topic-item a'); for (let i = 0; i < tpitm.length; i++) { tpitm[i].href = tpitm[i].href.split('=')[2].split('&')[0]; } document.querySelector('.download-app').remove(); var sm = document.querySelectorAll('.show-more a'); for (let i = 0; i < sm.length; i++) { sm[i].href = sm[i].href.split('=')[2].split('&')[0]; } } else { } })();