Skip to content

Instantly share code, notes, and snippets.

View Jiiks's full-sized avatar
👨‍👩‍👧‍👧
Boboo

Alexei Stukov Jiiks

👨‍👩‍👧‍👧
Boboo
View GitHub Profile
@Jiiks
Jiiks / Form1.Designer.cs
Created December 6, 2024 16:14
PoE2 Window manipulator
namespace PoE2WindowManip;
partial class Form1 {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
@Jiiks
Jiiks / BrowserTitleGrabber.cs
Last active January 27, 2023 09:30
Browser tab title grabber
/*
* C# Browser Title Grabber by Jiiks
* Grabs titles of all tabs.
* Tested with Chrome and Firefox.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
@Jiiks
Jiiks / Multiply.cs
Last active May 25, 2017 05:43
C# Bitmap multiply colour blend
public static Bitmap Multiply(this Bitmap bitmap, byte r, byte g, byte b, PixelFormat format = PixelFormat.Format32bppArgb) {
var size = new Rectangle(0,0, bitmap.Width, bitmap.Height);
var bitmapData = bitmap.LockBits(size, ImageLockMode.ReadOnly, format);
var buffer = new byte[bitmapData.Stride * bitmapData.Height];
Marshal.Copy(bitmapData.Scan0, buffer, 0, buffer.Length);
bitmap.UnlockBits(bitmapData);
byte Calc(byte c1, byte c2) {
var cr = c1 / 255d * c2 / 255d * 255d;
@Jiiks
Jiiks / bdws.md
Created April 12, 2017 01:54
BetterDiscord Websocket explanation

Since so many idiots keep referencing the websocket code as something that steals your data and sends it to me; let me explain these "programmers" who keep posting it what it actually does.

What was the websocket for? keyword: was

The BetterDiscord websocket was used as a secondary websocket connection to Discord servers in order to catch messages etc.

BdWSocket.prototype.start = function () {
    var self = this;
 /* $.ajax({
@Jiiks
Jiiks / bdrecovery.md
Last active February 19, 2022 05:32
BetterDiscord localstorage recovery instructions

How to recover your favourite emotes and customcss

This can also be used to recover your plugin settings

Developer console method

Step 1

Press ctrl+shift+i in Discord

Navigate to Application Local Storage https://discordapp.com

@Jiiks
Jiiks / bgimage.plugin.js
Created April 24, 2016 17:38
bg image plugin
//META{"name":"bgImage"}*//
var bgImage = function () {};
bgImage.prototype.start = function () {
if($("#bgimage").length <= 0) {
$(".app").append($("<div/>", {id: "bgimage"}));
}
};