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
@dvingerh
dvingerh / ptp.clearviewimproved.user.js
Created September 17, 2018 13:57
akes it easier to visually identify freeleech torrents and torrents with no seeders on PTP
// ==UserScript==
// @name PTP Clear View Improved
// @namespace https://passthepopcorn.me
// @version 1.0
// @description Makes it easier to visually identify freeleech torrents and torrents with no seeders on PTP
// @author jax913, cammy
// @match https://passthepopcorn.me/torrents.php*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @grant MIT
// ==/UserScript==
.guilds-wrapper .guilds .guild.selected:before {
margin-top: -10px;
}
.guilds-wrapper .guilds .guild.selected {
z-index: 2;
transform: scale(1.2);
margin: 10px;
margin-left: 5px;
}
@dvingerh
dvingerh / ptp.freeleechtorrentlink.user.js
Created July 18, 2018 02:00
View freeleech torrents through a fast search link added in the drop-down menu.
@dvingerh
dvingerh / ptp.clearviewimproved.user.js
Last active July 21, 2018 16:08
Makes it easier to visual identify freeleech torrents and torrents with no seeders on PTP
// ==UserScript==
// @name PTP Clear View Improved
// @namespace https://passthepopcorn.me
// @version 1.2
// @description Makes it easier to visually identify freeleech torrents and torrents with no seeders on PTP
// @author jax913, cammy
// @match https://passthepopcorn.me/torrents.php*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @grant MIT
// ==/UserScript==
// ==UserScript==
// @name Discord Avatar Download Button
// @version 1
// @description Read the name.
// @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/*
// ==UserScript==
// @name Discord Hide Guilds
// @description AAaa
// @namespace Violentmonkey Scripts
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match *://discordapp.com/*
//
// ==/UserScript==
$(document).ready(function() {
$('.guild-separator').after($('<button style="background-color: #2f3136; box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1); border-radius: 25px; padding: 0px; width: 50px; height: 50px; font-size: 13px; color: #fff; font-weight: normal; text-align: center; margin-bottom: 10px;" type="button" id="toggleGuilds">Toggle</button>'));
@dvingerh
dvingerh / hf.removerepthreads.user.js
Created June 12, 2018 11:36
Remove all threads that contains the word 'rep'
// ==UserScript==
// @name HF Remove Reputation Threads
// @namespace HF Remove Reputation Threads
// @version 0.1
// @description Remove all threads that contains the word 'rep'
// @author You
// @match https://hackforums.net/forumdisplay.php?fid=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @grant none
// ==/UserScript==
@dvingerh
dvingerh / picpub.batchdl_2.user.js
Last active April 21, 2018 14:51
Add download links and a batch download button for PixHost on Picturepub. Useful if the photos aren't added to an album.
// ==UserScript==
// @name PicturePub Batch Downloader
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Add download links and a batch download button for PixHost on Picturepub. Useful if the photos aren't added to an album.
// @author You
// @require https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @include *picturepub.net/index.php?threads*
// @grant GM_xmlhttpRequest
// @grant GM_download
function messageHandler(event) {
// Accessing to the message data sent by the main page
var messageSent = event.data;
// Preparing the message that we will send back
var messageReturned = "Hello " + messageSent + " from a separate thread!";
// Posting back the message to the main page
this.postMessage(messageReturned);
}
// Defining the callback function raised when the main page will call us
@dvingerh
dvingerh / jquery.initialize.js
Last active April 3, 2018 18:41
Jquery Initialize.js
// @link https://github.com/adampietrasiak/jquery.initialize
// @author Adam Pietrasiak
// @author Damien Bezborodov
;(function($) {
var seen = []; // Tracks elements that have previously been initialized.
// MutationSelectorObserver represents a selector and it's associated initialization callback.
var MutationSelectorObserver = function(selector, callback) {
this.selector = selector;
this.callback = callback;