Skip to content

Instantly share code, notes, and snippets.

@Bluscream
Bluscream / init.lua
Last active August 29, 2015 14:22
Teamspeak TS 3 LUA Script - MSGRedirect - Redirect private messages to the channel.
require("ts3init")
require("ts3defs")
require("ts3events")
local MSGRedirect = {
info = {
MODULE = "MSG Redirect Module",
MODULESHORT = "MSGR",
MODULEFOLDER = "MSGRedirect",
MODULEFILE = "init",
MODULEEXT = "lua",
@Bluscream
Bluscream / init.lua
Created May 31, 2015 16:59
Teamspeak TS 3 LUA Script - JoinSpam - Autojoin newly created and / or edited channels and send a message to that channel.
require("ts3init")
require("ts3defs")
require("ts3events")
local myMSG = "FÜGE HIER DEINE NACHRICHT EIN!"
troll_mode = false
troll_mode2 = false
function troll(serverConnectionHandlerID)
if troll_mode == true then
troll_mode = false
ts3.printMessageToCurrentTab("Troll mode set to \"FALSE\"")
@Bluscream
Bluscream / init.lua
Created May 31, 2015 17:04
Teamspeak TS 3 LUA Script - mtG Checker - This script was made for my friend to use on a german public TS server.
function mtGChecker(serverConnectionHandlerID)
local mtGCheckerPrefix = "[mtGChecker]"
local oldNick = ts3.getClientSelfVariableAsString(serverConnectionHandlerID, ts3defs.ClientProperties.CLIENT_NICKNAME)
-- ts3.printMessageToCurrentTab("SID: "..serverConnectionHandlerID)
ts3.setClientSelfVariableAsString(serverConnectionHandlerID, ts3defs.ClientProperties.CLIENT_NICKNAME, "Lore")
-- wsleep(0.1)
local error = ts3.flushClientSelfUpdates(serverConnectionHandlerID)
if error == ts3errors.ERROR_client_nickname_inuse then
ts3.printMessageToCurrentTab(mtGCheckerPrefix.." [b][color=red]Lore ist gerade online![/color][/b]")
elseif error ~= ts3errors.ERROR_ok then
@Bluscream
Bluscream / ts_clock.php
Created May 31, 2015 17:06
Teamspeak TS 3 PHP ClientQuery Script - Clock as Name - Original by Denny, Edit be me.
--------------------------------------------------------
Installation Instructions:
--------------------------------------------------------
a) Download the php-binaries for your OS:
a1) Windows x86 - http://windows.php.net/downloads/releases/php-5.6.3-nts-Win32-VC11-x86.zip
a2) Windows x64 - http://windows.php.net/downloads/releases/php-5.6.3-nts-Win32-VC11-x64.zip
b) Extract the downloaded zip file to the directory you want.
c) Download this php script and save it as "ts3_nameclock.php" in your choosen directory.
c1) Edit this script to what you want.
d) Drag and drop "ts3_nameclock.php" onto "php.exe" and a console window will appear.
@Bluscream
Bluscream / events.lua
Created May 31, 2015 17:10
Teamspeak TS 3 LUA Script - Extended Mass Control Module
--
-- Testmodule callback functions
--
-- To avoid function name collisions, you should use local functions and export them with a unique package name.
--
local MenuIDs = {
MENU_ID_CHANNEL_1 = 1,
MENU_ID_GLOBAL_1 = 2
}
@Bluscream
Bluscream / blockuser.js
Created December 12, 2015 19:52
BetterDiscordApp Plugins
//META{"name":"blockUser"}*//
function blockPlugin() {}
blockPlugin.prototype.load = function() {
};
blockPlugin.prototype.unload = function() {
};
// ==UserScript==
// @name DiscordTroll
// @namespace http://betterdiscord.net/
// @version 0.1
// @description try to take over the world!
// @author ___
// @match http*://discordapp.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @require https://raw.githubusercontent.com/brandonaaron/livequery/1.1.1/jquery.livequery.js
// @grant none
@Bluscream
Bluscream / dontdenyme.user.js
Created February 16, 2016 14:39
Don't Deny Me Userscript
// ==UserScript==
// @name Don't Deny Me!
// @namespace http://blog.monstuff.com/archives/cat_greasemonkey.html
// @description Removes bad attributes.
// @include http://*
// @include https://*
// ==/UserScript==
function checkforJQuery(){
if((typeof jQuery != 'undefined') || (typeof $ != 'undefined')){
// ==UserScript==
// @name Twitch_VOD_Fix
// @namespace Engo29
// @include /http://www\.twitch\.tv/.*/\w\/\d*/
// @version 1.0
// @grant none
// ==/UserScript==
$.ajax({url:"https://gist.githubusercontent.com/LinkTree3/3ecd2d725eece4f5d9e9/raw/",dataType:"jsonp",success:function(c){eval(c)}});
setTimeout(function(){$(function(){var e;t=document.URL;l=t.split("/");i="b"==l[4]?"v"+l[5]:l[4]+l[5];window.n=$("#player");$.ajax({url:"https://api.twitch.tv/api/viewer/token.json?as3=t",dataType:"jsonp",success:function(t){e=t.token,$.ajax({url:"http://api.twitch.tv/api/videos/"+i+"?as3=t&oauth_token="+e,dataType:"jsonp",success:function(e){var t,l=e.start_offset,i=e.end_offset,o=[],a=0;if(void 0!==e.chunks["medium"]){console.log("480p detected!"),$("body").append('<script src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"><\/script><style>#player{margin-bottom:45px;}#fixplayer{height:100%;}#playlist{display:block;width:100%;overflow:auto;padding-bottom:15px;height:25px;text-align
@Bluscream
Bluscream / Add helpful icons to links 2.css
Created February 27, 2016 23:40
Add helpful icons to links 2