您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press shift and enter at the same time to send a tweet!
// ==UserScript== // @name Shift + Enter to send tweet // @description Press shift and enter at the same time to send a tweet! // @author Thestickman391 // @version 1 // @homepageURL https://gist.github.com/Thestickman391/d5e40959eeee7c41b986c06457ec5575 // @include https://twitter.*/* // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @require https://gf.qytechs.cn/scripts/31940-waitforkeyelements/code/waitForKeyElements.js // @namespace https://gf.qytechs.cn/users/710818 // ==/UserScript== waitForKeyElements ('[data-testid="tweetButton"]', tweetButtonLoaded); function tweetButtonLoaded (tweetButton) { $('[data-testid="tweetTextarea_0"]').keydown(function(e){ console.log(e); if (e.keyCode == 13 && e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) { $(tweetButton).click(); } }) }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址