Skip to content

Instantly share code, notes, and snippets.

View tobynet's full-sized avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
@tobynet
tobynet / copy_pukiwiki_link.js
Created August 16, 2008 10:16
UserActionScript of copy Pukiwiki link for Sleipnir 2
@tobynet
tobynet / SpTBXFrameUnit.pas
Created September 5, 2008 09:18
TSpTBXFrame
unit SpTBXFrameUnit;
{
*What is it?
This is TSpTBX support component.
When TFrame puts on TSpTBXPanel or TSpTBXDockablePanel,
It has a problem that frame color is black.
This library resolved this problem.
@tobynet
tobynet / SpTBXFrameDesignUnit.pas
Created September 16, 2008 11:07
Designed Unit for TSpTBXFrame
unit SpTBXFrameDesignUnit;
{
Designed Unit for TSpTBXFrame
}
interface
procedure Register;
implementation
@tobynet
tobynet / add_delicious.js
Created October 4, 2008 09:34
UserActionScript of adding delicious bookmark for Slepnir2
/*
delicious.com 登録スクリプト
= 特徴
* 別のページで開く
* JavaScriptオフのページで当スクリプトを起動しても、
del.icio.us登録ページでは JavaScript がオンになり、
tagの補完などが効く。
= 履歴
* ver 0.2 2008/10/04 delicious.com に対応
// ==UserScript==
// @name SBM Comments Viewer
// @namespace http://white.s151.xrea.com/wiki/index.php?script/SBMCommentsViewer
// @description Show social bookmark's comments at the bottom of your browser.
// @include *
// ==/UserScript==
/*
Last Modified: 2009.03.22 by TOBY
<?xml version="1.0" encoding="utf-8"?>
<FubConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<WindowSetting>
<Left>611</Left>
<Top>51</Top>
<Width>1079</Width>
<Height>872</Height>
<Maximized>false</Maximized>
<PopupLeft>100</PopupLeft>
<PopupTop>100</PopupTop>
// ==UserScript==
// @name LDR with site thumbnail
// @namespace http://d.hatena.ne.jp/toby/
// @description Show feed thumbnail in Livedoor Reader(or fastladder)
// @include http://fastladder.com/reader/*
// @include http://reader.livedoor.com/reader/*
// @version 0.1
// ==/UserScript==
// referenced by http://la.ma.la/blog/diary_200610182325.htm
全角250文字(改行有り)
12345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890
**************************************************
全角250文字(改行なし)
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890**************************************************
addBefore(Twitter, 'post', function(ps){
var pre_str = "見てる:";
if (ps.item) { ps.item = "『" + ps.item + "』"; }
ps.item = ps.item || "";
ps.description = ps.description ? ps.description : pre_str;
});
<?php
function phptemplate_pager_link($text, $page_new, $element, $parameters = array(), $attributes = array()) {
if ($text === t('next ›')) {
$attributes['rel'] = 'next';
} else if ($text === t('‹ previous')) {
$attributes['rel'] = 'prev';
}
return theme_pager_link($text, $page_new, $element, $parameters, $attributes);
}