Add Block Button to Streamate User Details Pages

Makes it much more convenient to block members when they are no longer in your room! Blocks from both chat and messages at once.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Add Block Button to Streamate User Details Pages
// @namespace    https://greasyfork.org/en/users/870933
// @version      0.4
// @description  Makes it much more convenient to block members when they are no longer in your room! Blocks from both chat and messages at once.
// @author       LintillaTaylor
// @match        https://*.streamatemodels.com/smm/userdetails.php*
// @grant        none
// ==/UserScript==

var userid = (location.search.split('userid=')[1]||'').split('&')[0]

var txt = '<div style="clear:both; text-align:right;"><form method="POST" action="https://streamatemodels.com/smblock.php?" style="margin:0;"><input type="hidden" name="oldrelation[' + userid + ']" value="1028"><input type="hidden" name="blocked[' + userid + '][]" value="2" checked="1"><input type="hidden" name="blocked[' + userid + '][]" value="1024" checked="1"><button class="btn btn-danger button_short" type="submit" value="submit"><span>Block</span></button></form><br /></div>'

$('#page_body').append(txt);