Skip to content

Instantly share code, notes, and snippets.

View jnv's full-sized avatar

Jan Vlnas jnv

View GitHub Profile
/*
based on Blink, Arduino's "Hello World!"
Turns on an LED on for one second, then off for one second, repeatedly.
The Tinkerkit Led Modules (T010110-7) is hooked up on O0
http://www.tinkerkit.com/led-red-10mm/
created in Dec 2011
by Federico Vanzati
This example code is in the public domain.
@jnv
jnv / githubavisited.user.js
Created August 30, 2015 14:45
Color visited links on GitHub
// ==UserScript==
// @id githubavisited@jnv.github.io
// @name Color visited links on GitHub
// @version 0.1
// @namespace http://jnv.github.io
// @include https://github.com/*
// @domain github.com
// @grant GM_addStyle
// ==/UserScript==
@jnv
jnv / feedlyexpand.user.js
Created August 30, 2015 14:16
Remove width limitations on Feedly; useful for pictures and comics.
// ==UserScript==
// @id feedlyexpand@jnv.gihtub.io
// @name Feedly - Expand Content
// @version 2015.06.15
// @namespace http://jnv.github.io
// @author jnv
// @description Remove width limitations on Feedly; useful for pictures and comics.
// @include https://feedly.com/*
// @include http://feedly.com/*
// @domain feedly.com
@jnv
jnv / .gitignore
Last active August 29, 2015 14:19
Failing example for atomify with rework-inherit
node_modules/
dist/
@jnv
jnv / facebook.js
Created October 15, 2014 10:17
#selfXSS
// Remove all groups at https://www.facebook.com/browsegroups/
[].forEach.call(document.querySelectorAll('.declineButton'),function(e){e.click()})
// Reject all recommendations at https://www.facebook.com/suggestions/rate/
[].forEach.call(document.querySelectorAll('a[ajaxify*="event=No"]'),function(e){e.click()})
// Remove all FB pages suggestions at https://www.facebook.com/pages/
[].forEach.call(document.querySelectorAll('._5l77'),function(e){e.click();})
// ==UserScript==
// @id fbrecomhide@jnv.gihtub.io
// @name Hide Recommendations on Facebook
// @description Removes "People you may know", "Recommended Pages" and similar on Facebook.
// @version 2015.07.12
// @namespace http://jnv.github.io
// @domain www.facebook.com
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @grant GM_addStyle
@jnv
jnv / gdocsunblinkcaret.user.js
Last active August 29, 2015 14:04
Disables blinking caret in Google Docs and turns it into pretty blue colour. https://greasyfork.org/cs/scripts/4053-unblinking-blue-caret-in-google-docs
// ==UserScript==
// @name Unblinking Blue Caret in Google Docs
// @description Disables blinking caret (cursor) in Google Docs, makes it a bit thicker and gives it a pleasant blue color, ala iA Writer.
// @id gdocsunblinkcaret@jnv.gihtub.io
// @namespace https://jnv.github.io
// @domain docs.google.com
// @include http://docs.google.com/*
// @include https://docs.google.com/*
// @author Jan Vlnas http://jan.vlnas.cz
// @developer Dan Burd http://danburd.com
@jnv
jnv / twitterdetox.user.js
Last active January 3, 2016 12:11
Remove stuff from twitter, like following/followers, retweets and likes count. https://greasyfork.org/en/scripts/4054-twitter-detox
// ==UserScript==
// @id twitter.com-0c8ee385-6991-418e-940e-106644506a90@scriptish
// @name Twitter Carefree
// @version 2016.01.03
// @namespace https://jnv.github.io
// @description Remove stuff from Twitter, like following/followers, retweets and likes count.
// @include https://twitter.com/*
// @include https://mobile.twitter.com/*
// @grant GM_addStyle
// @license CC0 1.0; https://creativecommons.org/publicdomain/zero/1.0/
require 'multi_xml'
require 'pp'
xml = <<-EOF
<atom:feed xmlns="http://kosapi.feld.cvut.cz/schema/3" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:osearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:base="https://kosapi.fit.cvut.cz/api/3" xml:lang="cs">
<atom:link atom:rel="next" href="courses?offset=10&amp;limit=10"/>
<osearch:startIndex>0</osearch:startIndex>
</atom:feed>
EOF
@jnv
jnv / hidefbnewsfeed.user.js
Last active September 5, 2015 21:07
Replaces useless Facebook feed with useful kittens. https://greasyfork.org/scripts/4055-hide-facebook-news-feed
// ==UserScript==
// @id hidefbnewsfeed@jnv.gihtub.io
// @name Hide Facebook News Feed
// @description Replaces useless Facebook feed with useful kittens
// @version 2015.09.05
// @namespace http://jnv.github.io
// @domain www.facebook.com
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @screenshot https://gist.githubusercontent.com/jnv/e401c3faac0e893c489a/raw/screenshot.png