Skip to content

Instantly share code, notes, and snippets.

[
{
"url": "https://www.youtube.com/watch?v=hHOOAYW1IUo",
"username": "scraptionx",
"rankValue": 20000
},
{
"url": "https://www.youtube.com/watch?v=TYpptcq3O2Y",
"username": "Percyy",
"rankValue": 20000
@2kLEx2
2kLEx2 / Inject-stattrak.js
Last active September 8, 2025 12:10
checks if item is stattrak than injects "StatTrak™" in item name
(function () {
'use strict';
const CARD_SELECTOR = '.mantine-Card-root';
const IMG_SELECTOR = 'img[alt]'; // contains full item alt like: "★ StatTrak™ Butterfly Knife | ..."
const ST_SUFFIX = ' ST™'; // note the leading space
const NAME_FINDER = (card) => {
// Heuristic: first <p> name line after the image.
const centers = card.querySelectorAll('.mantine-Center-root');
(function () {
'use strict';
function isFavorite(button) {
const svg = button.querySelector('svg');
return svg && svg.style.color === 'yellow';
}
function clickFavorites(toFavorite = true) {
const buttons = [...document.querySelectorAll('button.mantine-ActionIcon-root')];
(function () {
'use strict';
// Use the key provided by the loader so cleanup can target our stuff.
const KEY = window.__ccCurrentKey || 'card_backgounde_script';
const GRAY = '#2e2e2e';
const GRAY_HOVER = 'rgb(55, 55, 55)';
let observer = null;
(function () {
'use strict';
const ICONS = {
doppler: {
sapphire: {
url: 'https://i.imgur.com/by6BOg9.png',
glow: '0 0 12px rgba(0, 153, 255, 0.8)'
},
ruby: {
(function () {
'use strict';
// Initialize toggle state from saved preference
let toggled = localStorage.getItem('navbarState') === 'hidden';
// Apply current toggle state
function applyState() {
const navbar = document.querySelector('.mantine-AppShell-navbar');
const paddedElements = document.querySelectorAll('.m_8983817');
{
"match": "BIG vs FaZe – 27.07 19:00",
"yt": "Subscribe to Zonixx on YouTube!",
"s1mple": "s1mple was on loan to FaZe..."
}
@2kLEx2
2kLEx2 / skin_data.json
Last active July 21, 2025 18:42
skin collection data
{
"Fever Case": [
{
"weapon": "M4A4",
"name": "Choppa",
"tier": "Mil-Spec",
"img": "https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images/econ/default_generated/weapon_m4a1_m4a4_green_camo_light_png.png",
"price_range": "$0.14 - $5.11",
"float_range": "0 - 1"
},