Skip to content

Instantly share code, notes, and snippets.

View digiwombat's full-sized avatar
🚽

Randall Fitzgerald digiwombat

🚽
View GitHub Profile

Keybase proof

I hereby claim:

  • I am digiwombat on github.
  • I am digiwombat (https://keybase.io/digiwombat) on keybase.
  • I have a public key ASAJhiu0E-CNntQKu2KulgnNLNJ9jHVwWvkGOtzlKDSIfwo

To claim this, I am signing this object:

twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.delete('platform');
arguments[0] = url.href;
}
@digiwombat
digiwombat / RectTransformAnchorFeedback.cs
Created December 5, 2020 18:35
An anchor tweener for Juce Feedbacks.
using Juce.Tween;
using System.Collections.Generic;
using UnityEngine;
namespace Juce.Feedbacks
{
[FeedbackIdentifier("Anchors", "RectTransform/")]
public class RectTransformAnchorFeedback : Feedback
{
[Header(FeedbackSectionsUtils.TargetSection)]
// A cheap, ugly mask fix for SuperTextMesh if you enable/disable the parent mask of an STM mesh.
using UnityEngine;
public class STMFixMask : MonoBehaviour
{
private SuperTextMesh stm;
private void Awake()
{
stm = GetComponent<SuperTextMesh>();
using PixelCrushers.DialogueSystem.SuperTextMeshSupport;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SequenceSubtitlePanel : SuperTextMeshSubtitlePanel
{
public override void Open()
{
public class DialogueParserExample : MonoBehaviour
{
public static string FilterText(string text)
{
const string genderStartTag = "[g=";
const int maxReplacements = 100;
if (text.Contains(genderStartTag))
{
@digiwombat
digiwombat / LAMFix.user.js
Created February 11, 2022 02:20
Fixer for LostArkMap
// ==UserScript==
// @name Lost Ark Fixer
// @namespace https://lostarkmap.com/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://lostarkmap.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lostarkmap.com
// @grant GM_addStyle
// ==/UserScript==
@digiwombat
digiwombat / PotatoHider.user.js
Last active February 15, 2023 06:25
Hider for potatoes.
// ==UserScript==
// @name Potato Hider
// @description Hides them numbers.
// @version 0.6
// @match https://www.twitch.tv/videos*
// @match https://www.twitch.tv/*/videos*
// @match https://www.twitch.tv/directory/following/videos*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js
// @grant none
// ==/UserScript==
@digiwombat
digiwombat / OrgChartLayout.cs
Last active March 18, 2023 16:55
An Org Chart Layout function
private float HorizontalSpacing => canvasRectWidth * 0.3f; // The horizontal spacing between nodes
private float VerticalSpacing => canvasRectHeight + 24; // The vertical spacing between nodes
private HashSet<DialogueEntry> visited = new();
private HashSet<DialogueEntry> subtreeVisited = new();
private HashSet<DialogueEntry> subtreeWidthAdded = new();
private Dictionary<DialogueEntry, float> subTreeWidths = new();
private void ArrangeNodes()
{
CalculatePositions(currentConversation.dialogueEntries[0], 0, 0);
@digiwombat
digiwombat / SizedFoldoutGroupAttribute.cs
Created February 12, 2021 05:01
SizedFoldoutGroup Attribute for Odin Inspector
namespace Sirenix.OdinInspector
{
#pragma warning disable
using System;
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
[System.Diagnostics.Conditional("UNITY_EDITOR")]
public class SizedFoldoutGroupAttribute : PropertyGroupAttribute
{