您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Orders messages into the right order on chat history pages of HTML exports produced by Facebook's "Download your information" tool (https://www.facebook.com/dyi). Make sure to go to chrome://extensions > Tampermonkey > Details and enable "Allow access to file URLs" to allow the script to work.
// ==UserScript== // @name Facebook Export: Show messages in the right order // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description Orders messages into the right order on chat history pages of HTML exports produced by Facebook's "Download your information" tool (https://www.facebook.com/dyi). Make sure to go to chrome://extensions > Tampermonkey > Details and enable "Allow access to file URLs" to allow the script to work. // @author SUM1 // @match *:///*/messages/inbox/*/message*.html // @match *://*/messages/inbox/*/message*.html // ==/UserScript== (function() { 'use strict'; if (document.querySelector('._4t5n')) { // Check if the container div of all messages exists. If it does, let chatContainer = document.querySelector('._4t5n') // assign the container div to a variable for brevity; for (var i = 1; i < chatContainer.childNodes.length; i++) { // for each child node of the container div (i.e., each message), chatContainer.insertBefore(chatContainer.childNodes[i], chatContainer.firstChild); // insert it before the first message div. } } })();