Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Always show controls in HTML5 videos
// @include *
// ==/UserScript==
let observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(node => {
if (node instanceof HTMLElement && node.nodeName === 'DIV' && !document.body.contains(node)) { // Imagus places its element oustide the <body>
let videoElements = node.getElementsByTagName('video');
// ==UserScript==
// @name For Imagus: always show controls in videos
// @namespace Violentmonkey Scripts
// @match https://www.reddit.com/*
// @match https://old.reddit.com/*
// @match https://www.instagram.com/*
// @grant GM_addStyle
// @grant unsafeWindow
// @version 1.0
// @require https://cdn.plyr.io/3.5.6/plyr.js
// Imports
const {classes: Cc, interfaces: Ci, manager: Cm, results: Cr, utils: Cu, Constructor: CC} = Components;
Cu.import('resource://gre/modules/AddonManager.jsm');
Cu.import('resource://gre/modules/osfile.jsm');
Cu.import('resource://gre/modules/Services.jsm');
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.importGlobalProperties(['Blob', 'URL']);
const COMMONJS_URI = 'resource://gre/modules/commonjs';
/* xiao const { require } = Cu.import(COMMONJS_URI + '/toolkit/require.js', {});
// ==UserScript==
// @name enterSelects.uc.js
// @include main
// ==/UserScript==
(function () {
/*
Cu.import("resource://gre/modules/PlacesUtils.jsm", this);
Cu.import("resource://gre/modules/Services.jsm", this);*/
@pintassilgo
pintassilgo / firefoxWhitelistExtensionsCPOWe10s.txt
Created October 6, 2017 21:44
firefoxWhitelistExtensionsCPOWe10s
{b9db16a4-6edc-47ec-a1f4-b86292ed211d}, Video DownloadHelper █
firegestures@xuldev.org, FireGestures
{DDC359D1-844A-42a7-9AA1-88A850A938A8}, DownThemAll!
privateTab@infocatcher, Private Tab █
mousegesturessuite@lemon_juice.addons.mozilla.org, Mouse Gestures Suite
treestyletab@piro.sakura.ne.jp, Tree Style Tab
cliqz@cliqz.com, Cliqz
{AE93811A-5C9A-4d34-8462-F7B864FC4696}, StumbleUpon
contextsearch2@lwz.addons.mozilla.org, Context Search X
{EF522540-89F5-46b9-B6FE-1829E2B572C6}, SearchPreview
@pintassilgo
pintassilgo / OperaStyle_linkDragSelection.uc.js
Created August 30, 2014 19:04
OperaStyle_linkDragSelection.uc.js mod
// ==UserScript==
// @name OperaStyle_linkDragSelection.uc.js
// @author Griever
// @include main
// @include chrome://global/content/viewSource.xul
// @include chrome://global/content/viewPartialSource.xul
// @version 0.0.4
// @note 複数選択時の手抜きを修正
// @note リンクの mousedown イベントが起きない問題を修正
// @note その他微修正