Skip to content

Instantly share code, notes, and snippets.

@marktaiwan
marktaiwan / derpibooru-rating-info.user.js
Created July 22, 2019 05:54
Shows image's rating above its thumbnail on Derpibooru.
// ==UserScript==
// @name Derpibooru - Rating Info
// @description Shows image's rating above its thumbnail on Derpibooru.
// @namespace derpibooru_ratinginfo
// @match https://*.derpibooru.org/*
// @match https://*.trixiebooru.org/*
// @version 20190722
// @grant GM_addStyle
// @inject-into content
// @noframes
// ==UserScript==
// @name Namize Background Ponies!
// @namespace http://derpiboo.ru/images/namize_bp
// @description Namize Background Ponies on Derpibooru!
// @icon http://orig13.deviantart.net/d1b5/f/2017/079/6/7/derpy_by_theshadowartist100_by_vcsajen-db2xkv3.png
// @match https://*.derpibooru.org/*
// @match https://*.trixiebooru.org/*
// @version 1.043
// @inject-into content
// @noframes
/*
* First things first, I couldn't find a way to disconnect an established
* websocket connection or stop incoming updates and new messages.
* So instead I mutilated the page by changing element ids or deleting them
* altogether so that it breaks most of the existing code.
*/
// modify the chat box to clear out existing messages and prevent new ones
const BUFFER_ID = 'dummybuffer';
@marktaiwan
marktaiwan / ffmpeg-video-to-gif.bat
Last active August 16, 2018 13:13
Windows batch script to simplify creation of GIFs with ffmpeg.
@echo off
setlocal enabledelayedexpansion
:: Windows batch script to simplify creation of GIFs with ffmpeg.
::
:: To use, drag and drop one or more files onto the script and type out the desired options when prompted.
::
:: The script assumes ffmpeg binary is already in the PATH variable.
:: It's important to note that this script will use the input filename and save the converted
:: GIF in the same directory as the input, if the file already exist, it will be overwritten.
// ==UserScript==
// @name Derpibooru WebM Volume Toggle (Experimental)
// @description Audio toggle for WebM clips
// @version 1.0.17
// @author Marker
// @namespace https://github.com/marktaiwan/
// @updateURL https://openuserjs.org/meta/mark.taiwangmail.com/Derpibooru_WebM_Volume_Toggle.meta.js
// @match https://derpibooru.org/*
// @match https://trixiebooru.org/*
// @match https://www.derpibooru.org/*
@marktaiwan
marktaiwan / webm-pause.user.js
Created July 10, 2017 17:18
Derpibooru WebM Pause in Background
// ==UserScript==
// @name Derpibooru WebM Pause in Background
// @description Pauses background webms
// @version 0.0.1
// @author Marker
// @namespace https://github.com/marktaiwan/
// @updateURL https://openuserjs.org/meta/mark.taiwangmail.com/Derpibooru_WebM_Volume_Toggle.meta.js
// @match https://derpibooru.org/*
// @match https://trixiebooru.org/*
// @match https://www.derpibooru.org/*
/*
8Chan Formatting Tools
- Adds a toolbar above the commenting area containing most of 8Chan's formatting options
- Press esc to close quick-reply window
- Hover cursor over each button to show availiable shortcut
*/
if (active_page == 'thread' || active_page == 'index') {
var commentToolFormats = {
bold: {
displayText: 'B',