您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Näytä kommentit ennen "Luitko jo nämä?" -listausta.
// ==UserScript== // @name HS.fi Kommentit ennen ehdotuksia // @namespace https://greasyfork.org/en/users/1449269 // @version 1.1 // @description Näytä kommentit ennen "Luitko jo nämä?" -listausta. // @author Tomi Kortelainen // @license MIT // @match https://www.hs.fi/* // @icon https://www.google.com/s2/favicons?sz=64&domain=hs.fi // @grant none // ==/UserScript== (function() { 'use strict'; new MutationObserver(() => { const comments = document.querySelector('article.comments')?.parentElement; if (comments) { const article = document.getElementById('page-main-content')?.parentElement; if (article && article.nextElementSibling !== comments) { article.insertAdjacentElement('afterend', comments); } } }).observe(document, {subtree: true, childList: true}); })();