Skip to content

Instantly share code, notes, and snippets.

@nekodobro
Created July 8, 2016 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekodobro/5aa3ae99a36b7da56486ef2eab43f3ec to your computer and use it in GitHub Desktop.
Save nekodobro/5aa3ae99a36b7da56486ef2eab43f3ec to your computer and use it in GitHub Desktop.
Перемещение в конец треда, по нажатию ссылки "END".
// ==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