您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows you to automatically expand all comments on the page
当前为
// ==UserScript== // @name LiveJournal Comments expander // @namespace Whiletruedoend // @original-script https://gist.github.com/Whiletruedoend // @original-script https://greasyfork.org/ru/scripts/461690-livejournal-comments-expander // @version 1.0 // @description Allows you to automatically expand all comments on the page // @author Whiletruedoend // @match *.livejournal.com/* // @match livejournal.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=livejournal.com // @grant none // @license GNU GPLv3 // ==/UserScript== function expandComments(doc){ var compactedComments = doc.querySelectorAll('[id^="expand_"], [class^=" mdspost-comment-actions__item mdspost-comment-actions__item--expandchilds "]'); for (var i in compactedComments) { var elem = compactedComments[i] if (elem && elem.lastChild && elem.lastChild.nodeName!="#text"){ elem.lastChild.click(); } } } expandComments(document);