Skip to content

Instantly share code, notes, and snippets.

alert(window.location.href);
// ==UserScript==
// @name twicli post canceler
// @namespace http://efcl.info/
// @description twicliのポストを行うのに5秒の猶予を設けて、その間にキャンセルボタンを押せばポストをキャンセルできます。
// @author azu
// @homepage http://efcl.info/
// @twitter https://twitter.com/azu_re
// ==/UserScript==
/* http://gist.github.com/567983.txt をプラグインにロード */
var favstar_user;
(function() {
var initialized = false;
function showFavstar() {
switchTo('favstar');
$('tw2c').innerHTML = '<iframe src="http://favstar.fm/users/'+favstar_user+'/recent" style="display:block;border:none;width:100%;height:600px;"></iframe>';
return false;
src="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"ja\" dir=\"ltr\">\n\n<head>\n\n<title>\u662d\u548c28\u5e74\u897f\u65e5\u672c\u6c34\u5bb3 - Wikipedia</title>\n\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n\n<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n\n<meta name=\"generator\" content=\"MediaWiki 1.16wmf4\" />\n\n<link rel=\"alternate\" type=\"application/x-wiki\" title=\"\u7de8\u96c6\" href=\"/w/index.php?title=%E6%98%AD%E5%92%8C28%E5%B9%B4%E8%A5%BF%E6%97%A5%E6%9C%AC%E6%B0%B4%E5%AE%B3&amp;action=edit\" />\n\n<link rel=\"edit\" title=\"\u7de8\u96c6\" href=\"/w/index.php?title=%E6%98%AD%E5%92%8C28%E5%B9%B4%E8%A5%BF%E6%97%A5%E6%9C%AC%E6%B0%B4%E5%AE%B3&amp;action=edit\" />\n\n<link rel=\"apple-touch-icon\" href=\"http://ja.wikipedia.org/apple-touch-icon.png\" />\n\n<link rel=\"shortcut icon\" href=\"/favicon.ico\" />\n\n<link
// inspired by http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/plugin/html-sanitizer.js
// instead of doing with text, only use DOM1 and DocumentFragment
var dom_html_sanitize;
(function(html4){
// usage is similar to html_sanitize method of html-sanitizer.js
// but takes an html document and returns a DocumentFragment
// @param document a document that the output DocumentFragment belongs to (must implement createDocumentFragment method)
// @param htmlDoc an html document to sanitize (must implement DOM1)
/* assist inline URL shortening in the text area */
(function(){
var wait = 5000; // time to wait before deciding that the server is unreacheable
var _updateCount = window.updateCount;
var fst = $('fst');
var timer, ele, command, original;
var remove = function(e){if(e && e.parentNode)e.parentNode.removeChild(e); e = null};
var api = 'http://atsushaa.appspot.com/shorten/get';
var cache = {};
// ==UserScript==
// @name pixiv-favtag.js
// @namespace http://js.d2no.info/
// @include http://www.pixiv.net/*
// ==/UserScript==
(function(){
var settings = {
position: 2, // メニューを表示させる位置(0=左上,1=右上,2=右下,3=左下)
blankwin: 1, // 常に別窓で開く
// ==UserScript==
// @name Opera port of GooglePreview
// @author Edward Ackroyd, adapted to Opera by Sombria
// @version 1.0 (GooglePreview 2.1.3)
// @include http://www.google.*/search*
// @include http://*search.yahoo.com/search*
// @include http://search.live.com/results*
// @include http://search.msn.com/results*
// @include http://*.zotspot.com/search/*
// ==/UserScript==
javascript:with(document.querySelector('form'))alert("javascript:(function(){var f=document.createElement('form');f.action='http://atsushuu.appspot.com/tw/post';f.method='post';f.setAttribute('accept-charset','utf-8');f.innerHTML='"+user_token.outerHTML+status.outerHTML+noredirect.outerHTML.replace('>',function(){return noredirect.checked?' checked>':'>'})+"';var c=prompt('これで投稿しますか?',document.title+' '+document.URL);if(f.status.value=c)f.submit();})()");
// ==UserScript==
// @name pixivreader
// @author edvakf
// @namespace http://d.hatena.ne.jp/edvakf/
// @include http://www.pixiv.net/new_illust.php*
// @include http://www.pixiv.net/search.php*
// @include http://www.pixiv.net/tags.php*
// @include http://www.pixiv.net/ranking.php*
// @include http://www.pixiv.net/ranking_log.php*
// @compatible Opera, Chrome (as UserJS and extension), Safari (as extension)