Skip to content

Instantly share code, notes, and snippets.

View NullDev's full-sized avatar
:octocat:
(◕‿◕)

NullDev // Chris NullDev

:octocat:
(◕‿◕)
View GitHub Profile
@NullDev
NullDev / gh-auto-name.user.js
Created June 1, 2023 22:20
Automatically write the repo name in the confirm field when deleting a repository on GitHub
// ==UserScript==
// @name GitHub Repo Delete Name Copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically write the repo name in the confirm field
// @author NullDev
// @match https://github.com/**/**/settings
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
@NullDev
NullDev / 1-discord-cli.md
Last active July 11, 2024 18:53
Some Discord console tricks

Discord Console Tricks (Experiments, Dev Stuff, etc)

INSTRUCTIONS FOR ALL OF THEM:

  • Open DevTools in Discord with CTRL + SHIFT + i (ONLY POSSIBLE IN CANARY AND PBT ANYMORE)
  • Paste Snippet
  • Edit it. (optional: if instructed)
  • Hit Enter.

Enable Experiments and Dev-Only Options:

@NullDev
NullDev / hideGoogleAds.user.js
Created January 25, 2023 12:09
Hide Google Ads in Search Results
// ==UserScript==
// @name Hide Google Ads
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hide google ads in search results
// @author NullDev
// @match https://www.google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
function sq(A){
let B = A / 2;
let p = 0;
let i = 0;
for (;;){
++i;
B = A / B + B;
B = B / 2;
@NullDev
NullDev / README.md
Last active July 6, 2022 23:29
Repo to GitHub.io Page Bookmarklet

Repository to GitHub.io Page Bookmarklet

This bookmarklet automatically converts the current GitHub Repo URL to the GitHub.io Page.

  • Create a new Bookmark and name it "Repo to GH Page" or something.
  • Paste this as the URL:
    javascript:(()=>{const{href:a}=window.location;if(a.startsWith("https://github.com/")){const b=(a.split("/").pop()||"").split("#")[0];if(b){const c=(a.split("/")[3]||"").split(".")[0];c&&(window.location.href=`https://${c}.github.io/${b}`)}}})();
  • Move it to your bookmarks bar (optional)
@NullDev
NullDev / anticursorchange.user.js
Last active June 8, 2022 18:12
Anti Cursor Change. Click "raw" to install
// ==UserScript==
// @name Anti Cursor Change
// @namespace NullDev
// @version 0.1
// @description Enforces default cursor style on all websites
// @author NullDev
// @match *
// @icon https://images.pling.com/cache/400x400/img/00/00/47/77/78/1538515/82a44a0c5f553ced10a4faae866093786ae516770da1a7e69f8458e1c4f05637c2e3.png
// @grant none
// ==/UserScript==
@NullDev
NullDev / pi.js
Last active April 20, 2022 12:27
Smol pi approximation in JS
for(i=p=2;i<1e6;i+=2)p*=i*i/(i*i-1);console.log(p)
@NullDev
NullDev / fib.js
Created April 16, 2022 19:27
Fibonacci Sphere in Three.js
import { OrbitControls } from "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/controls/OrbitControls.js";
// DEMO: https://jsfiddle.net/NullDev/8bjt60p9/
const numberOfPoints = 1500;
const radiusOfSphere = 30;
const getFibonacciSpherePoints = function(samples = 1, radius = 1){
const points = []
const offset = 2 / samples
@NullDev
NullDev / 1-README.md
Last active June 15, 2021 19:27
pr0gramm hover link preview deaktivieren