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.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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);