Created
October 30, 2015 14:29
-
-
Save mogsdad/e675f718994ce6a1aef6 to your computer and use it in GitHub Desktop.
Find user's last posted message in a StackExchange chat room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FindMyLastChatMsg | |
// @author Mogsdad | |
// @contributor Siguza | |
// @namespace chat.stackoverflow | |
// @description Find user's last posted message in a StackExchange chat room | |
// @include /^https?://chat.(stackoverflow|stackexchange|serverfault|superuser|askubuntu|stackapps)\.com/rooms/.*/ | |
// @version 1.0.0.0 | |
// @grant none | |
// ==/UserScript== | |
$('#chat-buttons').append('<button class="button" id="my-last">find my last…</button>') | |
$('#my-last').click(function(){$.scrollTo($('.mine:last'));}); // (Thanks Siguza!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment