Created
July 8, 2016 10:01
-
-
Save nekodobro/5aa3ae99a36b7da56486ef2eab43f3ec to your computer and use it in GitHub Desktop.
Перемещение в конец треда, по нажатию ссылки "END".
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 End Thread | |
// @namespace endpostinthread | |
// @version 0.1 | |
// @description Перемещение в конец треда, по нажатию ссылки "END". | |
// @author neko | |
// @match http://dobrochan.com/* | |
// @match http://dobrochan.ru/* | |
// @match http://dobrochan.org/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
"use strict"; | |
var el = document.querySelector("div.oppost.post"), | |
a = document.createElement("a"); | |
a.innerHTML = "<center>END</center>"; | |
a.style = "color: #910f00; font-weight: bold;"; | |
a.href = document.querySelector("table:last-child span.reflink a").href; | |
el.appendChild(a); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment