Skip to content

Instantly share code, notes, and snippets.

javascript:(function()%7Bfunction%20fill219()%7Blet%20container%20%3D%20document.querySelector('.html5-video-container')%3Bcontainer.style.position%20%3D%20'absolute'%3Bcontainer.style.top%20%3D%20'0'%3Bcontainer.style.bottom%20%3D%20'0'%3Bcontainer.style.left%20%3D%20'0'%3Bcontainer.style.right%20%3D%20'0'%3Bcontainer.style.margin%20%3D%20'auto'%3Blet%20video%20%3D%20document.querySelector('.html5-main-video')%3Bvideo.style.width%20%3D%20null%3Bvideo.style.height%20%3D%20null%3Bvideo.style.width%20%3D%20null%3Bvideo.style.top%20%3D%20null%3Bvideo.style.left%20%3D%20null%3Bvideo.style.objectFit%20%3D%20'cover'%3B%7Dfill219()%3Bwindow.addEventListener('resize'%2C%20fill219)%3Bwindow.addEventListener('fullscreenchange'%2C%20fill219)%7D)()
document.querySelector("#adblock-wrapper").remove();
document.body.style.overflow='auto';
document.body.style.height='auto';
// converted to bookmarklet at https://mrcoles.com/bookmarklet/
/*
javascript:(function()%7Bdocument.querySelector(%22%23adblock-wrapper%22).remove()%3Bdocument.body.style.overflow%3D'auto'%3Bdocument.body.style.height%3D'auto'%7D)()
javascript:$('#drawbridge-root, #wp_Signin, .wp_signin, iframe').remove(); $('html,body').css({'overflow':'visible'}).removeClass('drawbridge-up');$(document).on('wheel', (e)=>e.stopImmediatePropagation());
javascript:(function(){document.querySelector("#reg-overlay").remove();document.addEventListener("scroll", (e) => e.stopImmediatePropagation());document.querySelector(".trb_allContentWrapper").style.overflow = "auto";document.querySelector("html").style.overflow = "auto";})();
@gunderson
gunderson / FlyCamera.cs
Last active January 15, 2024 16:31
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@gunderson
gunderson / which-spawn.js
Created May 14, 2015 06:15
Node.js oneliner to check which program child_process.spawn is calling
require("child_process").spawn("which", ["program_name_goes_here"]).stdout.on('data',function(data){console.log(data.toString());});
@gunderson
gunderson / filmify.bash
Created April 24, 2015 18:49
Record screenlapse
# create movie
ffmpeg -r 24 -i ~/Desktop/screencapture/%d.jpg -b 15000k ~/Desktop/screencapture/timelapse.mov