Skip to content

Instantly share code, notes, and snippets.

View fdebijl's full-sized avatar

Floris de Bijl fdebijl

View GitHub Profile
@fdebijl
fdebijl / instructions.md
Last active July 11, 2022 14:42
Simon Stålenhag Wallpaper Downloader
@fdebijl
fdebijl / Instructions.md
Last active September 6, 2020 11:51
Twitter Like Exporter

WARNING: THIS USER SCRIPT NO LONGER WORKS - IT WAS ORIGINALLY MADE FOR THE TWITTER WEBAPP PRE JULY 2019

Download either Tampermonkey for Chrome, or Greasemonkey for Firefox if you want to run this script repeatably:

Tampermonkey: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

Greasemonkey: https://addons.mozilla.org/nl/firefox/addon/greasemonkey/

Add the script via the dashboard of Tamper/Greasemonkey, and then simply navigate to https://twitter.com/i/likes to download your own likes, or replace 'i' with any other username to download their likes.

@fdebijl
fdebijl / sommige_millennials.js
Created May 4, 2020 09:12
sommige_millennials.js
// ==UserScript==
// @name Sommige millennials
// @version 1.0
// @description https://twitter.com/Schellevis/status/1257234072037986305
// @author Fdebijl
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
@fdebijl
fdebijl / userscript.js
Created August 14, 2019 19:54
Ik ben geen expert, maar...
// ==UserScript==
// @name Ik ben geen expert, maar...
// @namespace https://floris.debijl.xyz/
// @version 1.0
// @author @Fdebijl
// @license GNU Affero General Public License 3.0 https://www.gnu.org/licenses/agpl-3.0.nl.html
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
@fdebijl
fdebijl / Instructions.md
Last active May 21, 2019 08:10
Kleintjesay

Kleintjesay voor Linux

  1. Installeer cowsay
    sudo apt install cowsay

  2. Voeg kleintje.cow toe aan /usr/share/cowsay/cows/

  3. (Optioneel) Alias kleintjesay
    alias kleintjesay='cowsay -f kleintje'

@fdebijl
fdebijl / userscript.js
Created February 14, 2019 15:03
6Cijfers
// ==UserScript==
// @name Accounts met zes cijfers zijn altijd nazi's
// @namespace https://floris.debijl.xyz/
// @version 1.0
// @description Laat geen tweets zien van gebruikers die zes cijfers of meer in hun naam hebben
// @author Fdebijl
// @match https://tweetdeck.twitter.com/
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
@fdebijl
fdebijl / Instructions.md
Last active December 28, 2018 15:35
Blocked Tweet Hider
@fdebijl
fdebijl / cleanad.js
Last active February 28, 2018 13:27
ProPublica - cleanad.js
// Dit zijn alle elementen die persoonsgegevens kunnen bevatten of
// om andere reden niet belangrijk zijn, zoals de like-knop.
const selectors = [
"video",
"input",
"button",
"iframe",
'a[href=""]',
".accessible_elem",
".uiLikePagebutton",
@fdebijl
fdebijl / parser.js
Last active February 28, 2018 13:25
ProPublica - parser.js
const timeline = node => {
// Controleer of het element ergens het woord 'Gesponsord' bevat
// zo weten we of het om een advertentie gaat of niet.
const sponsor = checkSponsor(node);
// Als blijkt dat het element geen advertentie is dan wordt deze weggegooid
if (!checkSponsor(node)) return Promise.resolve(false);
// Hier gebeuren twee dingen tegelijkertijd: de functie getTimelineId()
// haalt het ID van de advertentie op en kijkt op wie de advertentie is gericht (stap 3a).
// Ondertussen draait de functie cleanAd() om alle persoonsgegevens uit de advertentie
@fdebijl
fdebijl / getTimeLineID.js
Last active February 28, 2018 13:22
ProPublica - getTimeLineID.js
const getTimelineId = (parent, ad) => {
// Om te voorkomen dat de extensie te vaak informatie aanvraagt over
// een advertentie wordt er ook een cache bijgehouden.
if (adCache.has(toggle.id)) return Promise.resolve(adCache.get(toggle.id));
// Hier wordt het ID opgehaald
let promise = new Promise(
parseMenu(
ad,
".uiLayer",