您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically expand negative comments and append URL params on Tweakers.net articles.
// ==UserScript== // @name Tweakers negatief comments automatisch uitklappen // @namespace https://tweakers.net/ // @version 2024-09-05 // @description Automatically expand negative comments and append URL params on Tweakers.net articles. // @author Markisoke // @match https://tweakers.net/nieuws/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tweakers.net // @grant none // ==/UserScript== (function() { 'use strict'; // Check if the current URL starts with 'https://tweakers.net/nieuws/' if (window.location.href.startsWith('https://tweakers.net/nieuws/')) { // Define the string to append const params = "?sort=rating-desc&niv=-1&mode=nested&page=1#reacties"; // Check if the URL already contains the parameters to avoid duplicate appending if (!window.location.href.includes(params)) { // Redirect to the URL with the parameters appended window.location.href += params; } } })();