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.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey 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 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.

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

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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