Skip to content

Instantly share code, notes, and snippets.

View dvingerh's full-sized avatar
💭
I may be slow to respond.

Dirk Vingerhoeds dvingerh

💭
I may be slow to respond.
View GitHub Profile
"use strict";
(function () {
/*
Tested only in Chrome, ¯\_(ツ)_/¯
Please feel free to port/fix/fork.
*/
const ver = 'V.20170617.090454';
const src = 'https://github.com/taengstagram/IG-Comments-Bookmarklet/';
console.info(ver);
console.info(src);
@dvingerh
dvingerh / discord.autoreadguilds.user.js
Created October 31, 2017 13:02
Useful for emote servers. Whenever there's an unread message in a guild, this script will automatically mark it as read.
// ==UserScript==
// @name Discord Auto Mark As Read Guilds
// @description Useful for emote servers. Whenever there's an unread message in a guild, this script will automatically mark it as read.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @match *://discordapp.com/*
//
// ==/UserScript==
// ==UserScript==
// @name Discord Firefox Fix
// @namespace Unfuck Discord CSS on Firefox
// @version 0.1
// @description Unfuck Discord CSS on Firefox
// @author You
// @match *://discordapp.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @grant none
"use strict";
angular.module("gigafineartApp", ["ngCookies", "ngResource", "ngSanitize", "ui.router", "ui.bootstrap", "ngFileSaver"]).config(["$stateProvider", "$urlRouterProvider", "$locationProvider", function(a, b, c) {
b.otherwise("/"), c.html5Mode(!0)
}]), angular.module("gigafineartApp").controller("GcidownloadCtrl", ["$scope", "$http", "$window", "FileSaver", "Blob", "$q", "$timeout", function(a, b, c, d, e, f, g) {
function h(a, b) {
b = b || "";
for (var c = 1024, d = atob(a), f = d.length, g = Math.ceil(f / c), h = new Array(g), i = 0; g > i; ++i) {
for (var j = i * c, k = Math.min(j + c, f), l = new Array(k - j), m = j, n = 0; k > m; ++n, ++m) l[n] = d[m].charCodeAt(0);
h[i] = new Uint8Array(l)
}
import json
import codecs
import os.path
try:
from instagram_private_api import (
Client, ClientError, ClientLoginError,
ClientCookieExpiredError, ClientLoginRequiredError,
__version__ as client_version)
except ImportError:
import sys
import auth
from instagram_private_api import Client, ClientCompatPatch
def do_something():
instagram_app_api = auth.login_instagram("username", "password")
# Do stuff with instagram_app_api
do_something()
@dvingerh
dvingerh / discord.igdumper.py
Created January 5, 2018 20:25
IG Dumper Bot
#!/usr/bin/env python3
import discord
import asyncio
import ig_auth
import urllib.request
import os
import sys
import yaml.reader
import re
import textwrap
@dvingerh
dvingerh / discord.extrafilebuttons.user.js
Last active January 25, 2020 15:38
Adds a direct download button and an 'open in new tab' button for content such as (embedded) images and uploaded files.
// ==UserScript==
// @name Discord Extra File Button Options
// @version 1
// @description Adds a direct download button and an 'open in new tab' button for (embedded) images.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://gist.github.com/notcammy/a8b37bc2f49a76c30220d80fdd661429/raw/3148bcb32b9f0ce30cc62ee684eb60962051bcfa/jquery.initialize.js
// @match *://discordapp.com/*
// @match *://cdn.discordapp.com/*
@dvingerh
dvingerh / discord.directvideoembed.user.js
Created January 19, 2018 19:15
Embed MP4 videos in Discord.
// ==UserScript==
// @name Discord Direct Video Embed v2
// @description Embed MP4 videos in Discord.
// @namespace Violentmonkey Scripts
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @match *://discordapp.com/*
// @grant GM_addStyle
// @grant GM_getResourceText
// ==/UserScript==
@dvingerh
dvingerh / discord.extrafilebuttons.user.js
Last active February 4, 2019 17:30
Adds a direct download button and an 'open in new tab' button for (embedded) media.
// ==UserScript==
// @name Discord Extra File Button Options
// @version 02.04.2019.1
// @description Adds a direct download button and an 'open in new tab' button for (embedded) media.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://gist.github.com/notcammy/a8b37bc2f49a76c30220d80fdd661429/raw/3148bcb32b9f0ce30cc62ee684eb60962051bcfa/jquery.initialize.js
// @match *://discordapp.com/*
// @match *://cdn.discordapp.com/*