This file contains 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
$(document).ready(function(){ | |
jQuery('a.rss-item').filter(function(){ | |
return this.hostname && this.hostname !== location.hostname; | |
}).each(function() { | |
var link = jQuery(this); | |
link.css('backgroundImage', 'url(' + 'http://s2.googleusercontent.com/s2/favicons?domain_url=' + escape('http://' + this.hostname) + ')'); | |
}); | |
}); |
This file contains 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
accept | |
add | |
admire | |
admit | |
advise | |
afford | |
agree | |
alert | |
allow | |
amuse |
This file contains 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
<!-- using <object> (doesn't work in IE) --> | |
<object height="450" width="600" type="application/pdf" data="/attachment/hello.pdf"> | |
<h2>This content requires a PDF plugin</h2> | |
<p>View the PDF file here: <a href="/attachment/hello.pdf">hello.pdf</a></p> | |
</object> | |
<!-- using an iframe (does work in IE) pass options in the query string --> | |
<iframe height="900" width="99%" src="/attachment/hello.pdf#toolbar=0&scrollbar=0&navpanes=0"> </iframe> |
This file contains 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 Google Docs strikeout keyboard shortcut | |
// @description Adds a keyboard shortcut for strikeout | |
// @namespace http://userscripts.org/scripts/review/68438 | |
// @include http*://docs.google.com/* | |
// ==/UserScript== | |
(function() { | |
document.addEventListener('keydown', function(e){ |
This file contains 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
ruby -rwebrick -e"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start" |
This file contains 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
/* | |
* This bookmarklet can be used to post an image/URL | |
* to a script, just click it. Adds a form and submits it. | |
*/ | |
javascript:( | |
function(){ | |
b=document.getElementsByTagName('body')[0]; | |
/* create the form */ |
This file contains 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
javascript: (function () { | |
var w = window; | |
var d = document; | |
var g = w.open('about:blank', 'gnotesWin', 'location=0,menubar=0,scrollbars=0,status=0,toolbar=0,width=300,height=300,resizable'); | |
var s = d.createElement('script'); | |
s.setAttribute('src', 'http://www.google.com/notebook/bookmarkletPoster?zx=' + (new Date()).valueOf()); | |
d.body.appendChild(s); | |
w.setTimeout(function () { | |
w.blur(); | |
g.focus(); |
This file contains 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
require 'rubygems' | |
require 'nokogiri' | |
html = Nokogiri::HTML(DATA) | |
html.xpath('//table').each do |htable| | |
tbody = Nokogiri::XML::Node.new('tbody', html) | |
htable.children.each do |child| | |
child.parent = tbody | |
end | |
htable.add_child(tbody) |
This file contains 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
#!/usr/bin/ruby1.8 | |
require 'nokogiri' | |
require 'pp' | |
html = <<-EOS | |
<table > | |
<tbody> | |
<tr> <!-- table header --> </tr> | |
</tbody> |
This file contains 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
javascript: function wrb() { | |
var d = document, | |
z = d.createElement('scr' + 'ipt'), | |
b = d.body; | |
try { | |
if (!b) throw (0); | |
d.title = '(Saving...) ' + d.title; | |
z.setAttribute('src', 'http://www.website.com/__UNIQUE__?u=' + encodeURIComponent(d.location.href) + '&t=' + (new Date().getTime())); | |
b.appendChild(z); | |
} catch (e) { |