スレッドフロートBBSのdatとかsubject.txtにジャンプ

  • /*
     * @title スレッドフロートBBSのdatとかsubject.txtにジャンプ
     * @license MIT License
     */
    
    (function(){
    	var res;
    	
    	//したらば
    	if(res = /^http:\/\/jbbs\.livedoor\.jp\/bbs\/read\.cgi\/(\w+\/\d+\/\d+)/.exec(location.href)){
    		location.href = "http://jbbs.livedoor.jp/bbs/rawmode.cgi/" + res[1];
    	}
    	else if(res = /^(http:\/\/jbbs\.livedoor\.jp\/\w+\/\d+)/.exec(location.href)){
    		location.href = res[1] + "/subject.txt"
    	}
    	//まちBBS
    	else if(res = /^(http:\/\/\w+\.machi\.to)\/bbs\/read\.cgi\/(\w+\/\d+)/.exec(location.href)){
    		location.href = res[1] + "/bbs/offlaw.cgi/" + res[2]; 
    	}
    	else if(res = /^(http:\/\/\w+\.machi\.to)\/(\w+)/.exec(location.href)){
    		location.href = res[1] + "/bbs/offlaw.cgi/" + res[2]; 
    	}
    	//2ch系
    	else if(res = /^(http:\/\/[\w\.]+\/)test\/read\.cgi\/(\w+)\/(\d+)/.exec(location.href)){
    		location.href = res[1] + res[2] + "/dat/" + res[3] + ".dat";
    	}
    	else if(res = /^(http:\/\/[\w\.]+\/\w+)/.exec(location.href)){
    		location.href = res[1] + "/subject.txt";
    	}
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/02/18 14:37:18 - 2011-02-18