Skip to content

Instantly share code, notes, and snippets.

@wappenull
wappenull / IgFull.js
Last active January 11, 2023 13:56
(TamperMonkey) View full resolution images on Instagram
// ==UserScript==
// @name IG Fullsize (mod by Wappen)
// @version 0.7
// @description View full resolution images on Instagram
// @match https://www.instagram.com/*
// @require https://gist.githubusercontent.com/realies/2fece0cd3e197cf6b31ca1316431a2a4/raw/debc0e6d4d537ac228d1d71f44b1162979a5278c/waitForKeyElements.js
// @author realies, mod by Wappen
// ==/UserScript==
(() => {
waitForKeyElements("div._aagu", clickBox => {
@wappenull
wappenull / WappenFBlock.js
Last active October 7, 2022 16:17
Wappen FB Blocker, blocks suggested post, reel, sponsored post in simple scripting.
// ==UserScript==
// @name Wappen FBlock
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Disable brain cell damaging content.
// @author Wappen
// @match https://www.facebook.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=facebook.com
// @grant none
// ==/UserScript==
@wappenull
wappenull / EditorTestAssemblyOnOff.cs
Last active May 30, 2022 10:44
(UnityEditor) Search for test assembly location and offer to turn its folder ON/OFF from Unity import
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
namespace Wappen.Editor
{
/// <summary>
@wappenull
wappenull / HtmlColors.cs
Last active April 6, 2022 20:51
List of HTML color names for UnityEngine Color
using UnityEngine;
namespace Wappen
{
/// <summary>
/// List of HTML color names for UnityEngine Color.
/// </summary>
/// <remarks>
/// Extracted from https://www.w3schools.com/colors/colors_hex.asp
///
@wappenull
wappenull / SceneChangeTracker.cs
Created June 6, 2021 04:39
Help track unknown Unity scene dirty which bloat the version control.
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
// See https://forum.unity.com/threads/how-to-know-what-makes-scene-dirty.694390
namespace Wappen.Editor
{
/// <summary>
@wappenull
wappenull / PropertyDrawerFinder.cs
Last active March 12, 2024 03:11
Find PropertyDrawer with attribute [CustomPropertyDrawer( typeof( T ) )] in all assemblies
// Revision history
// Rev 1 16/MAY/2021 initial
// Rev 2 23/AUG/2021 add support for array property path
// Rev 3 23/AUG/2021 cache using type+path (s_PathHashVsType)
// Rev 4 23/AUG/2021 properly handling array and list by stealing code from Unity CS reference
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
@wappenull
wappenull / GameViewSizeShortcut.cs
Last active March 14, 2024 06:54
Unity Editor Setting game view resolution by shortcut key
/*
*
* Script to use ALT+1 ALT+2 ALT+3 for setting gameview resolution.
* If shortcut fail (such as 1280x720) you must add it manually in gameview dropdown first.
*
* Author: Wappen
*
* https://gist.github.com/wappenull/668a492c80f7b7fda0f7c7f42b3ae0b0
*
* Revision: