SE Chat Catch-up Marker Remover

Removes "catch-up" separators from SE Chat

目前為 2014-08-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name           SE Chat Catch-up Marker Remover
// @author         Cameron Bernhardt (AstroCB)
// @namespace http://greasyfork.org
// @version        2.0.1
// @description  Removes "catch-up" separators from SE Chat
// @include        http://chat.*.stackexchange.com/rooms/*
// @include        http://chat.stackoverflow.com/rooms/*
// @include        http://chat.serverfault.com/rooms/*
// @include        http://chat.superuser.com/rooms/*
// @include        http://chat.askubuntu.com/rooms/*
// ==/UserScript==

    var markers = document.getElementsByClassName("catchup-marker");
    var observer = new MutationObserver(function(){ var markers = document.getElementsByClassName("catchup-marker");
    for(var i = 0; i < markers.length; i++){
        markers[i].className = markers[i].className.split(/catchup-marker-*\s*\d*/).join("");
    }});
    observer.observe(document.getElementById("chat"), {attributes: true, childList: true, characterData: true});