Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
(◕‿◕)

NullDev // Chris NullDev

:octocat:
(◕‿◕)
View GitHub Profile
@NullDev
NullDev / hideGoogleAds.user.js
Created January 25, 2023 12:09
Hide Google Ads in Search Results
View hideGoogleAds.user.js
// ==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==
View discord-colored-text-generator.html
<!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>
/*
View sqrt.js
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
View README.md

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
View anticursorchange.user.js
// ==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
View pi.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
View fib.js
import { OrbitControls } from "https://cdn.jsdelivr.net/npm/three@0.121.1/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
View 1-README.md
@NullDev
NullDev / 1-README.md
Last active April 11, 2021 21:39
Auto-Skip Amazon Video Ads / Promos
View 1-README.md

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 / greaterThan.js
Last active September 5, 2020 19:31
A JavaScript implementation to allow expressions such as 3 > 2 > 1
View greaterThan.js
/**
* This basically allows expressions like 3 > 2 > 1
* which is usually written as 3 > 2 && 2 > 1
*
* I basically did this because I wanted to see how easy it is
* to implement such "new syntax" in JS
*
* Please don't use this. It's hacky.
*/