Skip to content

Instantly share code, notes, and snippets.

View ElfhirDev's full-sized avatar

ElfhirDev ElfhirDev

View GitHub Profile
@ElfhirDev
ElfhirDev / jthreshold-scroll.user.css
Last active October 26, 2016 13:29
Display line of threshold for scroll-based animation. When element is between the line, it will be affected. Need GreaseMonkey / Tampascript and Stylish plugins.
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("http://localhost/([a-zA-Z0-9_/])+") {
.jgrid {
position: fixed;
z-index: 999998;
top:0; left: 0; right: 0; bottom: 0;
width: 100%;
height: 100%;
}
@ElfhirDev
ElfhirDev / yt-anti-suggested-video-right-bar.user.js
Last active September 14, 2016 15:39
Remove suggested video because not relevant most of the time : based on previously seen video, videos in my subscribs but already seen ...
// ==UserScript==
// @name yt-anti-suggested-video
// @namespace yt-anti
// @description remove suggested video because not relevant
// @include https://www.youtube.com/*
// @version 1.5
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js
// ==/UserScript==
$(document).ready(function () {
@ElfhirDev
ElfhirDev / bg-img.css
Created August 4, 2016 09:47
css image bg replace img src
/* Inspired by https://github.com/JasonBarnabe/stylish */
#img {
height: 0 !important;
width: 0 !important;
/* these numbers match the new image's dimensions */
padding-left: 128px !important;
padding-top: 128px !important;
background: url(http://placekitten.com.s3.amazonaws.com/homepage-samples/408/287.jpg) no-repeat !important;
}
@ElfhirDev
ElfhirDev / checker.user.js
Last active November 10, 2015 08:46
NL-Checker Gist
// ==UserScript==
// @name NL-Checker User Script
// @namespace NL-Checker
// @description Script de vérifications Newsletter HTML
// @icon https://github.com/Elfhir/NL-checker/tree/master/GreaseMonkey/skin/logo.png
// @downloadURL https://github.com/Elfhir/NL-checker/blob/master/GreaseMonkey/checker.user.js
// @version 2.3
// @grant none
// @require http://code.jquery.com/jquery-1.11.3.min.js
// @include http://127.0.0.1:8091/nl/*