Skip to content

Instantly share code, notes, and snippets.

{"lastUpload":"2020-09-11T12:54:10.135Z","extensionVersion":"v3.4.3"}
@fisknils
fisknils / imdb-parental-nudity-rating.js
Created December 23, 2019 13:32
Userscript: IMDB.com/title/* parental nudity rating
// ==UserScript==
// @name Nudity scraper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Nudity is everywhere in modern media. If you're not bothered by it, you probably dont even realize it. This script makes the process of finding a clean movie a little less tedious by replacing the "Rate this" link on the top of the single movie page to the content from nudity rating on the parental-guide.
// @author Fisknils
// @include https://www.imdb.com/title/*
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am fisknils on github.
  • I am mrsoft (https://keybase.io/mrsoft) on keybase.
  • I have a public key ASDyRfcFOligiN2bYRLPEVv2nJKrLP6njfchG1sC8ZM1Wwo

To claim this, I am signing this object:

@fisknils
fisknils / cookie_manager.js
Last active July 8, 2019 10:50
javascript cookie manager class
// ==UserScript==
// @name [DEBUG] CSS
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include *
// @grant GM_addStyle
// ==/UserScript==
@fisknils
fisknils / debug.css
Last active May 22, 2019 08:00
CSS Debug helper
/*
Visualizing your page elements for CSS debugging purposes
Source: https://medium.freecodecamp.org/heres-my-favorite-weird-trick-to-debug-css-88529aa5a6a3
*/
.cssdebug, .cssdebug * {
color: hsla(210, 100%, 100%, 0.9) !important;
background: hsla(210, 100%, 50%, 0.5) !important;
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
}
@fisknils
fisknils / Collection.class.js
Created April 23, 2019 08:25
Javascript Collection class
'use strict';
class Collection extends Array {
query(pattern){
var regex = new RegExp(pattern);
return this.filter(function(entry){
return regex.test(entry);
});
}
/**
* dependencies: jQuery 1+
* right-click any element with your dev-tools console open
*/
jQuery(document).ready(function($){
var events = [];
var timeout;
/* Fetch a property from an array of objects */
/*
source: https://stackoverflow.com/a/22638396
*/
function css(a) {
var sheets = document.styleSheets, o = [];
a.matches = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.msMatchesSelector || a.oMatchesSelector;
for (var i in sheets) {
var rules = sheets[i].rules || sheets[i].cssRules;
for (var r in rules) {
// ==UserScript==
// @name [DEBUG MODE]
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Library for calling a callback if debug cookie has been set
// @author You
// @include *
// @grant none
// ==/UserScript==