Skip to content

Instantly share code, notes, and snippets.

View niku's full-sized avatar
💭
🍖

KITAMURA Daisuke niku

💭
🍖
View GitHub Profile
// ==UserScript==
// @name automatic moving @mixi
// @description automatic moving script to an external link
// @namespace http://niku.name/
// @include http://mixi.jp/view_diary.pl?url=*
// @include http://mixi.jp/new_friend_diary.pl*
// ==/UserScript==
// style definition for external url
// Ex.
<?php
$url = 'http://menu.2ch.net/bbsmenu.html'; //元になるメニュー
$ext_filename = 'link.dat'; //追加サイトを書いたファイル名
$char_code = '<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">'; //文字コード指定(Shift_JIS)
$org_data = file_get_contents($url); //オリジナルデータ読み込み
mb_convert_variables("SJIS","auto",$org_data); //SJISに変換
//ヘッダー部分+<BODY>タグまで切り取り -> $head_dataに格納
//ヘッダー部分に文字コードを追加
// ==UserScript==
// @name Auto Login bike_news_plus
// @description Enters password in bike_news_plus's login
// @namespace http://niku.name/
// @include http://pita.paffy.ac/news/admin.cgi
// ==/UserScript==
(function() {
pre = document.referrer;
now = document.URL;