您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Üzenetet küld
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/391769/745900/Uzenetek.js
// ==UserScript== // @name Uzenetek // @namespace http://tampermonkey.net/ // @version 1.2 // @description Üzenetet küld // @author vacsati // @match * // ==/UserScript== function telegram(chat,bot,message){ $.ajax({ type: 'GET', url: "https://api.telegram.org/bot"+bot+"/sendmessage?chat_id="+chat+"&text="+message, success: function(response){console.log("ok:",message);}, error: function(response){console.error("err:",response.responseText);} }); } function discord_wm(webhook,data){ $.ajax({ type: 'POST', url: webhook, data: data, success: function(response){console.log("ok");}, error: function(response){console.error("err:",response.responseText);} }); } function discord_cbm(channel,bot,message){ var data = { "content": message, "tts": false }; $.ajax({ type: 'POST', url: 'https://discordapp.com/api/v6/channels/' + channel + '/messages', data: JSON.stringify(data), headers: { '%3Aauthority': 'discordapp.com', '%3Amethod': 'POST', '%3Apath': '/api/v6/channels/' + channelId + '/messages', '%3Ascheme': 'https', 'Authorization': 'Bot ' + bot, 'Content-Type': 'application/json' }, success: function(response) {console.log("ok:",message);}, error: function(response) {console.error("err:",response.responseText);} }); }