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
inject = (args..., fn) -> | |
script = document.createElement 'script' | |
script.innerHTML = """ | |
Array.prototype.pop.call(document.getElementsByTagName('script')).innerText = JSON.stringify(function() { | |
try { return #{ fn.toString() }.apply(window, #{ JSON.stringify args }); } | |
catch(e) { return {isException: true, exception: e.toString()}; } | |
}()); | |
""" | |
document.body.appendChild script | |
response = JSON.parse script.innerText |
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/env ruby | |
##### Automatically post to your Google+ account from the commandline. | |
##### (C) 2012 Boris Buegling <boris@icculus.org> | |
require 'rubygems' | |
require 'mechanize' | |
## Use Windows Mobile user agent to get Basic Mobile HTML | |
agent = Mechanize.new |
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 AutoReviewComments | |
// @namespace benjol | |
// @version 1.3.1 | |
// @description Add pro-forma comments dialog for reviewing (pre-flag) | |
// @grant none | |
// @include http*://*stackoverflow.com/questions* | |
// @include http*://*stackoverflow.com/review* | |
// @include http*://*stackoverflow.com/admin/dashboard* | |
// @include http*://*stackoverflow.com/tools* |
NewerOlder