Skip to content

Instantly share code, notes, and snippets.

@dinh
dinh / leboncoin.user.js
Last active August 29, 2015 14:27 — forked from fmagnan/leboncoin.user.js
formatted leboncoin.fr results
// ==UserScript==
// @name leboncoin
// @namespace marvin.org
// @include http://www.leboncoin.fr/*/offres/*
// @include http://www.leboncoin.fr/li*
// @version 1
// @grant none
// ==/UserScript==
/* jshint strict: true */
@dinh
dinh / enregistreurleboncoin.user.js
Last active August 29, 2015 14:27 — forked from jhemono/enregistreurleboncoin.user.js
Enregistreur d'annonces
// ==UserScript==
// @name Enregistrement d'annonce leboncoin.fr
// @version 0.3
// @description Ajoute la possibilité d'enregistrer des annonces sur leboncoin.fr
// @updateURL https://gist.githubusercontent.com/jhemono/32444bada82ae7972d5a/raw/enregistreurleboncoin.user.js
// @grant none
// @include http://www2.leboncoin.fr/ai/form/*
// @noframes
// ==/UserScript==
@dinh
dinh / on.js
Last active August 29, 2015 14:27 — forked from johan/on.js
A highly useful userscript function for filtering web pages by DOM contents, pathnames and otherwise.
/* coffee-script example usage - at https://github.com/johan/dotjs/commits/johan
on path_re: ['^/([^/]+)/([^/]+)(/?.*)', 'user', 'repo', 'rest']
query: true
dom:
keyboard: 'css .keyboard-shortcuts'
branches: 'css+ .js-filter-branches h4 a'
dates: 'css* .commit-group-heading'
tracker: 'css? #gauges-tracker[defer]'
johan_ci: 'xpath* //li[contains(@class,"commit")][.//a[.="johan"]]'
@dinh
dinh / export-google-music-playlist.user.js
Last active August 29, 2015 14:27 — forked from Metapyziks/export-google-music-playlist.user.js
Adds a button to export a Google Music playlist.
// ==UserScript==
// @name Export Google Music Playlist
// @namespace http://ziks.net/
// @version 0.1
// @description Adds a button to export a Google Music playlist
// @author Ziks
// @match https://play.google.com/music/listen
// @require http://code.jquery.com/jquery-latest.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js
// @grant none
@dinh
dinh / nikkei_scraper.user.js
Last active August 29, 2015 14:27 — forked from teruhisa/nikkei_scraper.user.js
Nikkei Scraper
// ==UserScript==
// @name Nikkei Scraper
// @namespace http://http://teruhisa.github.io//
// @version 0.1
// @description scrape news article content and dump it into body.
// @author Teruhisa Haruguchi
// @match https://gateway.itc.u-tokyo.ac.jp/g3/,DanaInfo=t21.nikkei.co.jp+CMN0F12.do
// @match https://t21.nikkei.co.jp/g3/CMN0F12.do
// @grant none
// ==/UserScript==
@dinh
dinh / screenscraper.user.js
Last active August 29, 2015 14:27 — forked from axemclion/screenscraper.user.js
Screen Scraper Template
// ==UserScript==
// @name ScreenScraperTemplate
// @namespace http://dy-verse.blogspot.com
// @include http://page.you.wanna.scrape/path?pageName?pageNumber=*
// ==/UserScript==
/**
* This function is responsible for submitting the data
* @param {Object} parsedData
* @param {Object} record
@dinh
dinh / Makefile
Last active September 6, 2015 21:09 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@dinh
dinh / gist:7add4b3190eec48c59e2
Created October 19, 2015 21:47 — forked from rajeshg/gist:664217
Delicious bookmarklet which opens the delicious url in a seperate window. This is a slightly modified version of the official delicious bookmarklet
javascript:(function(){window.open('http://www.delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&jump=doclose');})()
@dinh
dinh / curlp.pl
Created March 30, 2016 13:26 — forked from mpcabd/curlp.pl
curl with Proxy auto-config (PAC) files
#!/usr/bin/env perl
# This work is licensed under the GNU Public License (GPLv3).
# To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html
# To read more about this script go to: http://mpcabd.igeex.biz/using-curl-with-proxy-pac-configuration-files/
use strict;
use warnings;
@dinh
dinh / activetable.js
Created July 26, 2016 10:51 — forked from stevesouders/activetable.js
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jse…
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div");
ATpopup.style.cssText = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
ATpopup.innerHTML = "<a href='sort' title='sort' onclick='sortColumn(); return false'><img border=0 src='http://stevesouders.com/images/sort_up_down.png' style='padding-top: 0.2em;'></a><br><a href='hide' style='color: #C00; font-family: monospace; font-size: 1.5em; text-decoration: none;' title='hide' onclick='hideColumn(); return false'>x</a>"; // TODO - use protocol-less URL for img