您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
SOOP(숲) 채팅창에서 복사/붙여넣기를 활성화하도록 변경합니다. (Made by 도연)
// ==UserScript== // @name SOOP(숲) 채팅창 복사/붙여넣기 활성화 (by 도연) // @namespace http://tampermonkey.net/ // @version 1.0.5 // @description SOOP(숲) 채팅창에서 복사/붙여넣기를 활성화하도록 변경합니다. (Made by 도연) // @author https://github.com/dokdo2013 // @license MIT // @match https://play.sooplive.co.kr/*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... const update = () => { $("#write_area").off("cut copy paste"); $("#write_area").on("cut copy", function(event) { event.stopPropagation(); event.preventDefault(); // 복사할 텍스트 가져오기 const writtenText = $("#write_area").text(); // 복사 처리 if (navigator.clipboard) { navigator.clipboard.writeText(writtenText) .then(() => { console.log('복사 완료:', writtenText); }) .catch(err => { console.error('복사 실패:', err); }); } else { // Clipboard API가 지원되지 않는 경우 document.execCommand('copy'); console.log('복사 처리: execCommand 사용'); } }); $("#write_area").on("paste", function(event) { // 기본 동작을 허용 event.stopPropagation(); // 다른 이벤트 전파 방지 event.preventDefault(); // 이벤트 기본 동작 방지 const clipboardData = event.originalEvent.clipboardData || window.clipboardData; const pastedData = clipboardData.getData('text'); // 붙여넣기 텍스트를 수동으로 입력 document.execCommand("insertText", false, pastedData); }); console.log("enable copy/paste"); }; const interval = setInterval(update, 500); setTimeout(() => { clearInterval(interval) }, 30000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址