Skip to content

Instantly share code, notes, and snippets.

View Hans5958's full-sized avatar
🏫
Uni and uni and uni and... (limited availability!)

Hans5958 Hans5958

🏫
Uni and uni and uni and... (limited availability!)
View GitHub Profile
@Hans5958
Hans5958 / unblock-all-twitter-2.user.js
Last active October 28, 2021 02:01
A later version of my script for unblocking everyone on Twitter. Made as an userscript for auto-reload purposes. Upon adding, go to https://twitter.com/settings/blocked/all and it will start unblocking people. Old version: https://gist.github.com/Hans5958/007c47112c4510856c1a642a32aa2964
// ==UserScript==
// @name Unblock All Twitter (REMOVE WHEN DONE!)
// @namespace https://gist.github.com/Hans5958/4ff0a03f4d7cd6d7af6f03371ca907a6
// @version 0.1.0
// @author Hans5958
// @match https://twitter.com/settings/blocked/all
// @grant none
// @run-at document-start
// ==/UserScript==
@Hans5958
Hans5958 / instagram-block-hitman.user.js
Created October 28, 2021 02:06
A script to block all Instagram users on an array. Upon adding, go to the first user's page and it will start blocking. Most likely won't work for large number for users.
// ==UserScript==
// @name Instagram Block Hitman
// @namespace https://gist.github.com/Hans5958/e6c02ffd2c91c3d6aca0ca529e154112
// @version 0.1.0
// @author Hans5958
// @match https://www.instagram.com/*
// @grant none
// @run-at document-idle
// ==/UserScript==
@Hans5958
Hans5958 / Get Scratch followers count.js
Created January 3, 2022 02:59
A simple script to get the followers count on Scratch (scratch.mit.edu).
var headers = new Headers();
headers.append('pragma', 'no-cache');
headers.append('cache-control', 'no-cache');
var parser = new DOMParser();
var user = 'griffpatch'
var page = 1
fetch(`https://scratch.mit.edu/users/${user}/followers/`, {
headers
})
@Hans5958
Hans5958 / A Pledge of Content Preservation.md
Last active April 22, 2023 15:46
A Pledge of Content Preservation (SUPERSEEDED: Check the blog post)

Warning: This has been superseeded with the version on the blog. Check the new version on the post below. https://hans5958.github.io/blog/a-pledge-of-content-preservation/

A Pledge of Content Preservation

There are many instances where an entity (including, but not limited to, general people, content creators, institutions, businesses, organizations) retracts their content from existence. We have seen this in various cases, and it is not rare to see a disappointed group of people condemns such action, myself included.

With that, I pledge the following.

  1. To preserve and not remove public content that I have shared.
@Hans5958
Hans5958 / confession.md
Last active March 31, 2023 12:01
This is a very serious confession, there is absolutely zero tomfoolery on this writing. :)

Alright, I think this is a good time to talk about this. Ever since my inception of my internet adventures, I have discovered a lot of these so-called cultures.

Part of this is fueled with my curiosity. As someone who is from a developing country, the internet is quite a niche. People would still have computer courses. I can't believe the technology has advanced so much, people have phones at this time.

Right, back go the topic, at this time I have discovered this kind of community. A community that is quite acceptable to me and by everyone. Something I rarely see in the sea on the internet toxicity.

Inside, I realised that I think I was destined as a part of the community. It was a shame to me since the bad things of this community, such as what I heard as animal abuse, but I guess we know that this is just a vocal minority.

Let's just say that I'm now opening myself to hate, that I'm declaring myself that I am a part of this community, and I can say that I am proud of it. Partially, because I don't want

@Hans5958
Hans5958 / Analysis of Timeline Granularity.md
Last active April 13, 2022 06:57
Analysis of Timeline Granularity - made for https://github.com/placeAtlas/atlas.

Analysis of Timeline Granularity

Made for placeAtlas/atlas.

Since the epoch of the timeline feature (so-called time travel), many members of the community suggests to add more time on the Atlas. I myself the one who supports the idea, but we should think about it for a while, especially on how fine we should make the timeline. Henceforth is my scribe about it.

Conditions

Here are my conditions on choosing the granularity of the timeline.

@Hans5958
Hans5958 / Switch To YouTube Uploads Playlist.js
Last active July 13, 2022 13:54
Simple script to switch to the uploads playlists (Uploads by...) on YouTube
var params = new URLSearchParams(location.search)
var listId = params.get('list')
if (listId && listId.startsWith('UU')) {
params.delete('list')
params.delete('index')
} else {
params.set('list', 'UU' + ytInitialPlayerResponse.videoDetails.channelId.substr(2))
}
location.search = params.toString()
@Hans5958
Hans5958 / A Study of Funkipedia Mods.md
Last active December 21, 2022 10:58
A Study of Funkipedia Mods – What Can Be Improved

A Study of Funkipedia Mods – What Can Be Improved

Notice regaring updates

Updates are made as I learned more on the wiki. Please review the revisions page for any changes that I have made.

Preword

Within my English barriers, I fond of writing long texts just so my texts are in no way ambiguous or to be misintepret it. This includes this essay, because I wish to improve this by giving improvements based on what I learned on editing wikis. I would like to write this in small notes on your Discord server, on your Twitter, but it seems to me that it is not enough for me to deliver my message that I intend.

@Hans5958
Hans5958 / keybase.md
Last active July 12, 2022 02:53
Newer Keybase verification proof

Keybase proof

I hereby claim:

  • I am Hans5958 on github.
  • I am hans5958 (https://keybase.io/hans5958) on keybase.
  • I have a public key whose fingerprint is CF7E C77E 184B E60E 002D F879 28B1 DEC4 70E8 08BB

To claim this, I am signing this object:

@Hans5958
Hans5958 / Remove All Videos from YouTube Playlist.js
Created July 13, 2022 13:50
Remove all videos from a YouTube playlist. Open a playlist page and run this script. Adjust the interval time if needed, but as low as 50, or maybe lower, should be fine.
setInterval(() => {
document.querySelector('.ytd-playlist-video-list-renderer #menu yt-icon.style-scope.ytd-menu-renderer').click()
setTimeout(() => document.querySelector('#items > ytd-menu-service-item-renderer:nth-child(4) > tp-yt-paper-item > yt-formatted-string').click(), 1)
}, 100)