Skip to content

Instantly share code, notes, and snippets.

View youdie323323's full-sized avatar

youdi youdie323323

  • Japan
  • 22:45 (UTC +09:00)
View GitHub Profile
@youdie323323
youdie323323 / ClientBound.zig
Created June 6, 2025 21:40
Reading floats in zig
const std = @import("std");
pub fn readFloat16(stream: anytype) !f16 {
var buffer: [2]u8 align(@alignOf(f16)) = undefined;
_ = try stream.readAll(&buffer);
return std.mem.bytesAsValue(f16, &buffer).*;
}
@youdie323323
youdie323323 / detect-adguard.js
Last active June 23, 2025 14:34
Detect adguard without fetching blocked link
for (const toStringProperty of Object.getOwnPropertyNames(Window.prototype.toString || window.__proto__.toString)) {
if (toStringProperty !== "length" && toStringProperty !== "name") {
console.log("Adguard detected");
break;
}
}
var packageFunction;
var p;
var attribute;
var namespacedP;
packageFunction = function (P, window, undefined) {
(function (t) {
var e = {};
function n(r) {
if (e[r]) {
return e[r].exports;
@youdie323323
youdie323323 / webmssdk.js
Created September 13, 2024 17:53
douyin webmssdk.js string deobfuscated
(function (e, t) {
if (typeof exports == "object" && typeof module != "undefined") {
t(exports);
} else if (typeof define == "function" && define.amd) {
define(["exports"], t);
} else {
t((e = typeof globalThis != "undefined" ? globalThis : e || self).byted_acrawler = {});
}
})(this, function (Hb) {
"use strict";