Displays a popup with additional information when hovering over user or group links on the Roblox website.
A custom fetch
/GM_xmlhttpRequest
wrapper for UserScripts.
Extends the default fetch
options.
If using GM_xmlhttpRequest
(useFetch: false
), the timeout is 60 seconds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function parseImageString(imageString: string) | |
local contentId = imageString:match("(%w+://%S+)") | |
local width = tonumber(select(1, imageString:match("[wW](%d+)"))) | |
local height = tonumber(select(1, imageString:match("[hH](%d+)"))) | |
local x = tonumber(select(1, imageString:match("[xX](%d+)"))) | |
local y = tonumber(select(1, imageString:match("[yY](%d+)"))) | |
local color = imageString:match("(#%x+)") | |
local transparency = tonumber(select(1, imageString:match("(%d+)%%"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Set<T> = { [T]: true } | |
-- Asymmetric difference | |
local function difference<V>(set: Set<V>, ...: Set<V>): Set<V> | |
local diff = table.clone(set) | |
for index, nextSet in { ... } do | |
for value in nextSet do | |
diff[value] = nil | |
end |
The documentation has been moved to this gist in order to reduce lag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
local regionalIndicators = { A = "๐ฆ", B = "๐ง", C = "๐จ", D = "๐ฉ", E = "๐ช", F = "๐ซ", G = "๐ฌ", H = "๐ญ", I = "๐ฎ", J = "๐ฏ", K = "๐ฐ", L = "๐ฑ", M = "๐ฒ", N = "๐ณ", O = "๐ด", P = "๐ต", Q = "๐ถ", R = "๐ท", S = "๐ธ", T = "๐น", U = "๐บ", V = "๐ป", W = "๐ผ", X = "๐ฝ", Y = "๐พ", Z = "๐ฟ" } | |
local function constructFlagEmoji(region: string): string | |
local flag = {} | |
for _, char in region:split("") do | |
table.insert(flag, regionalIndicators[char:upper()]) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[afterAll.args]] | |
type = "function" | |
[[afterEach.args]] | |
type = "function" | |
[[beforeAll.args]] | |
type = "function" | |
[[beforeEach.args]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(namespace) { | |
function Create(className = "span", attributes = {}, ...children) { | |
const node = document.createElement(className) | |
let onInit = null | |
const events = { | |
event: {}, | |
} | |
for (const [attributeName, attributeValue] of Object.entries(attributes)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
local Creator = {} | |
type PropsType = { [any]: any } | |
type SymbolicKey<T> = { type: string, value: T } | |
type PublicSymbolicKey<T> = (value: T) -> SymbolicKey<T> | |
local function SymbolicKey(name: string, valueType: string?) | |
return function(value: any) | |
if valueType ~= nil and valueType ~= "*" then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
local POLYNOMIAL = 0xEDB88320 | |
local HASH_TABLE = {} | |
for index = 0, 255 do | |
local value = index | |
for _ = 1, 8 do | |
if value % 2 == 1 then |