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 / 1-discord-cli.md
Last active May 8, 2024 00:32
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 / 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-README.md
Last active May 9, 2023 00:50
Auto-Skip Amazon Video Ads / Promos

Auto-Skip for Amazon Video Ads / Promos

You just want to binge your show but Amazon interrupts your experience with those annoying promos between the episodes?
LOOK NO FURTHER

This script saves you some clicks and automatically skips those promos for you.

How to install

@NullDev
NullDev / StarRating.css
Last active March 27, 2023 12:55
CSS Star rating System - Percentage Based, CSS Only Star rating System
.rating {
unicode-bidi: bidi-override;
color: #c5c5c5;
font-size: 25px;
height: 25px;
width: 100px;
margin: 0 auto;
position: relative;
padding: 0;
text-shadow: 0px 1px 0 #a2a2a2;
@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==
function sq(A){
let B = A / 2;
let p = 0;
let i = 0;
for (;;){
++i;
B = A / B + B;
B = B / 2;
<!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>
/*
@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)