FileBase.to Skip

// ==UserScript==
// @name           FileBase.to
// @description    自動抓取下載連結
// @include        http://filebase.to/files/*
// ==/UserScript==
if (document.getElementById('dl_free3'))
    document.forms[0].submit();
if (document.getElementById('captcha'))
    document.forms[0].submit();
if (document.getElementsByTagName('form')[0].action.indexOf('#') == -1)
    prompt('Done.', document.getElementsByTagName('form')[0].action);

Click Rex

/****************************************************
 * Copyright (c) 2010, NKid. All Rights Reserved.  
 * PROJECT:Click Rex                               
 * DESCRIPTION:全自動背景傳送MSN來電震動                         
 * VERSION:2                                       
 ****************************************************/
#x::    ;按下win + x執行程式
    SetCapsLockState, off    ;把CapsLock設為關
    TrayTip, Click Rex, Turn On, 1    ;顯示開始訊息
    Loop
    {
        ;按下CapsLock即停止程式
        if GetKeyState("CapsLock", "T") {
        TrayTip, Click Rex, Turn Off, 1
        SetCapsLockState, off
        Break 
          }
    SetTitleMatchMode,2
    ControlClick ,x130 y487,rexob7w
    ;Click    ;按左鍵
    ;Send, ...{enter}
    Sleep 10
    }

使用Bookmarklet開啟新視窗並寫入原始碼

  1. 把所要寫入的原始碼進行Compress HTML
  2. 壓縮後,把HTML屬性的雙引號(")取代成
    \"
  3. 接著,再把javascript裡的換行符號(\n)取代成
    \\n
  4. 補充,javascript裡的反斜線(\)取代成
    \\
  5. 置入here的部份
    var n = window.open("", "").document, c;
    c = "here";
    n.open();
    n.write(c);
    n.close();
  6. 取代完成後,把上述步驟所有程式碼使用Bookmarklet Builder製成Bookmarklet

Note:
  • HTML使用 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title></title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        </head>
        <body>
      
        </body>
    </html>
  • javascript撰寫部份使用單引號
  • 步驟2、3、4皆在處理跳脫字元,可寫成巨集

Multiple commands in cmd

字元語法定義
& [...]Command1 &Command2在一個命令列上,用來分割多個命令。Cmd.exe 會執行第一個命令,然後,再執行第二個命令。
&& [...]Command1 &&Command2唯有 && 符號前面的命令成功時,才執行該符號之後的命令。Cmd.exe 會執行第一個命令,並且只有當第一個命令完全成功時,才會執行第二個命令。
|| [...]Command1 || Command2唯有 || 前的命令失敗時,才執行 || 之後的命令。Cmd.exe 會執行第一個命令,並且只有當第一個命令未成功完成 (接收到大於 0 的錯誤字碼) 時,才執行第二個命令。
( ) [...](Command1 & Command2)用於組合或巢狀處理多個命令。
; 或 ,Command1 Parameter1;Parameter2用於分割命令參數。

命令殼層概觀
Solved: multiple commands in CMD?
How to Group Multiple Commands in cmd.exe

變更Firefox介面樣式 (userChrome.css)

  1. 開啟Profile\chrome\
  2. 複製userChrome-example.css為userChrome.css
  3. 鍵入 *{font-family:Microsoft JhengHei !important; font-size: 1em !important;}
    /*拿掉功能表按鈕預設字串*/
    #appmenu-button .button-text {display:none !important;}
    /*功能表按鈕換上自訂字串*/
    #appmenu-button .button-box .box-inherit:before {content: "NKid";color: white;}
    /*拿掉功能表按鈕箭頭符號*/
    #appmenu-button .button-menu-dropmarker {display: none !important;}
  4. 重新啟動Firefox