hwm_view_remote_post

Добавляет к постам ссылку на просмотр поста

Version vom 12.10.2017. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name            hwm_view_remote_post
// @author          Kleshnerukij
// @description     Добавляет к постам ссылку на просмотр поста
// @version         1.0.3
// @include         http://www.heroeswm.ru/forum_messages.php?tid=*
// @include         http://qrator.heroeswm.ru/forum_messages.php?tid=*
// @include         http://178.248.235.15/forum_messages.php?tid=*
// @include         http://www.lordswm.com/forum_messages.php?tid=*
// @icon            https://3.downloader.disk.yandex.ru/disk/09d947dfb1e3e31ff7b8748c3e8a57f5e777951a391d04ccdb4e2007ae2fd926/59df5c16/uIIgOpSC9_eAAYCLQy7wES98Kjxpbvtri7jtCmsmnIfPw8Gu4qHfBwUsKKjpz16sTKr4_CZjcsJ0_mnfwSpTrQ%3D%3D?uid=0&filename=favicon.ico&disposition=inline&hash=&limit=0&content_type=image%2Fx-icon&fsize=1150&hid=972fa8932ee5f2287bdb97e51cf4e983&media_type=image&tknv=v2&etag=1ae0df3b579d9150cccbf603a29d1a79
// @encoding 	    utf-8
// @namespace       https://greasyfork.org/users/12821
// ==/UserScript==

// (c) Клещнерукий - http://www.heroeswm.ru/pl_info.php?id=7076906

window.onload = function() {
	var page_content = document.getElementsByTagName('body')[0].innerHTML;
	var search_id = /forum_messages\.php.*?name=\"(\d+)\" class=\"pi\">\d+<\/a>/ig;
	var chek_section = /forum_thread\.php\?id=11\"><font class=\"forumt\">Форум для внеигровых тем<\/font>/i;
	var array_id;
	var post_num = 0;

	if (page_content.search(chek_section) != -1) {
		while ((array_id = search_id.exec(page_content)) !== null) {
			document.getElementsByClassName("message_footer")[post_num].getElementsByTagName("td")[1].getElementsByTagName("td")[0].innerHTML += " <a style=\"text-decoration: none;\" href=\"http://hwmfamily.ru/services/view_remote.php?id_msg="+array_id[1]+"\" target=\"_blank\">.</a>";
			++post_num;
		}
	}
};