This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto expand t.co links on Tweetdeck website | |
// @namespace https://github.com/lgp171188 | |
// @include https://tweetdeck.twitter.com/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
function expandTwitterShortlinks() { | |
var twitter_shortlinks = document.getElementsByClassName('url-ext'); | |
for (var i = 0; i < twitter_shortlinks.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# [sudo] gem install mechanize | |
# ruby tumblr-photo-ripper.rb | |
require 'rubygems' | |
require 'mechanize' | |
# Your Tumblr subdomain, e.g. "jamiew" for "jamiew.tumblr.com" | |
site = "doctorwho" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defadvice newline-and-indent (after darrik-nai-curly-special activate) | |
"Do something special when RET between {}." | |
(when (eq (char-after) ?\}) | |
(let ((pos (point))) | |
(if (search-backward "{") | |
(progn | |
(goto-char pos) | |
(newline) | |
(indent-according-to-mode) | |
(previous-line) |