您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script allows user to send message by pressing the enter key on Twitter Mobile DM
当前为
- // ==UserScript==
- // @name Twitter Mobile - Enter to send message
- // @version 0.3
- // @description This script allows user to send message by pressing the enter key on Twitter Mobile DM
- // @author himalay
- // @namespace https://himalay.com.np
- // @include *://mobile.twitter.com/messages/*
- // @run-at document-end
- // ==/UserScript==
- document.addEventListener('keydown', function(e) {
- if (!e) e = window.event;
- if (e.keyCode === 13 && !e.shiftKey) {
- e.preventDefault(); document.querySelector('[data-testid="dmComposerSendButton"]').click();
- }
- }, false);