Microphone Double-Click Toggle

Toggle the microphone on double-click in Tinychat

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Bort Mack
1日のインストール数
0
累計インストール数
1
評価
0 0 0
バージョン
0.1
作成日
2024/07/28
更新日
2024/07/28
大きさ
1.78KB
ライセンス
不明
対象サイト

Explanation

Metadata Block

The metadata block includes the script's name, version, description, author, match patterns for the URLs where the script should run, permissions (@grant), and the script's execution time (@run-at).

Main Functionality

  • The script waits for the page to load and then executes the toggleMicrophone function.
  • The toggleMicrophone function selects the microphone button and sets an event listener for double-click events.
  • When the button is double-clicked, it toggles the microphone state (open/close) by calling openMicrophone or closeMicrophone functions.

Helper Functions

  • openMicrophone and closeMicrophone functions simulate a click on the microphone button to change its state.

Installation Instructions

  1. Copy the script code.
  2. Open Tampermonkey dashboard.
  3. Click on "Add a new script".
  4. Replace the default content with the copied script.
  5. Save the script.

This will allow the microphone button to toggle its state between open and closed on double-clicks. Adjust the button selector ('button.mic-button') as needed to match the actual button in the Tinychat interface.