Skip to content

Instantly share code, notes, and snippets.

View HELLSNAKES's full-sized avatar
👋
Hi

HELLSNAKE HELLSNAKES

👋
Hi
View GitHub Profile
@Brostoffed
Brostoffed / [Minified] - ChatGPT-TOC.js
Last active May 6, 2025 13:45
Add table of contents to ChatGPT
javascript:(function(){"use strict";if(document.getElementById("toc-panel")||document.getElementById("toc-handle"))return;var e=document.createElement("style");e.textContent="#toc-panel{position:fixed;top:0;right:0;width:280px;height:100%;background:#fafafa;box-shadow:-4px 0 8px rgba(0,0,0,.1);font-family:sans-serif;font-size:.8rem;border-left:1px solid #ddd;display:flex;flex-direction:column;z-index:9998;transform:translateX(0);transition:transform .3s ease}#toc-panel.collapsed{transform:translateX(280px)}#toc-header{padding:6px 10px;background:#ddd;border-bottom:1px solid #ccc;font-weight:bold;flex-shrink:0}#toc-list{list-style:none;flex:1;overflow-y:auto;margin:0;padding:6px}#toc-list li{padding:4px;cursor:pointer;border-radius:3px;transition:background-color .2s}#toc-list li:hover{background:#f0f0f0}#toc-list ul{margin-left:16px;padding:0}#toc-list ul li::before{content:\"\"}#toc-handle{position:fixed;top:50%;right:0;transform:translateY(-50%);width:30px;height:80px;background:#ccc;display:flex;align-item
@HELLSNAKES
HELLSNAKES / presence.js
Last active August 1, 2024 08:04
mobile-presence
const Discord = require("discord.js")
const client = new Discord.Client({ ws: { properties: { $browser: "Discord iOS" }} })
client.on("ready", () => {
client.user.setActivity(`hentaiz`, { type: 3, browser: "DISCORD IOS" })
console.log("Ready")
})
client.login('token')
@HELLSNAKES
HELLSNAKES / api.js
Last active October 20, 2021 11:40
Simple api use express
const express = require("express");
const app = express();
const port = process.env.PORT || 5000
app.get('/', (req,res) => {
res.send('Hello world')
})
app.get('/image', (req,res) => {
const result = {};
result.code = 200;