Greasy Fork

@-posting

Link to posts in the same 4chan thread with "@".

目前为 2015-08-24 提交的版本。查看 最新版本

// ==UserScript==
// @name        @-posting
// @version     0.1.0.1
// @namespace   atposting
// @license     WTFPL
// @include     *://boards.4chan.org/g/*
// @run-at      document-end
// @description Link to posts in the same 4chan thread with "@".
// ==/UserScript==
(function() {
	Array.prototype.forEach.call(document.querySelectorAll('.postMessage'), function(x) {
		x.innerHTML = x.innerHTML.replace(/@([0-9]+)/, '<a href="#p$1" class="quotelink">@$1</a>');
	});
})();