-
Notifications
You must be signed in to change notification settings - Fork 1
/
topikgazda_lista.user.js
38 lines (33 loc) · 1.55 KB
/
topikgazda_lista.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ==UserScript==
// @name Topikgazda Patch
// @version 2.2
// @description Topikgazda topikban túl sok a topikgazda
// @author dfintha, dobragab
// @include *prohardver.hu/tema/topikgazda_topik*
// @include *itcafe.hu/tema/topikgazda_topik*
// @include *logout.hu/tema/topikgazda_topik*
// @include *mobilarena.hu/tema/topikgazda_topik*
// @include *gamepod.hu/tema/topikgazda_topik*
// @include *fototrend.hu/tema/topikgazda_topik*
// @include *prohardver.hu/tema/topikgazda_offtopik*
// @include *itcafe.hu/tema/topikgazda_offtopik*
// @include *logout.hu/tema/topikgazda_offtopik*
// @include *mobilarena.hu/tema/topikgazda_offtopik*
// @include *fototrend.hu/tema/topikgazda_offtopik*
// @updateURL https://raw.githubusercontent.com/dobragab/prohardver-userscripts/master/topikgazda_lista.user.js
// @grant none
// @require https://raw.githubusercontent.com/dobragab/prohardver-userscripts/master/responsive_sites.js
// ==/UserScript==
(function() {
'use strict';
var tgDiv = ph_is_site_responsive(window.location.hostname) ? "thread-users-list" : "thrusers";
var thrUsers = document.getElementById("right").getElementsByClassName(tgDiv)[0];
var thrList = thrUsers.getElementsByTagName("ul")[0];
var num = thrList.children.length - 1;
while (thrList.firstChild) {
thrList.removeChild(thrList.firstChild);
}
var node = document.createElement("li");
node.appendChild(document.createTextNode(num + " fő"));
thrList.appendChild(node);
})();