LoginSignup
0
0

More than 3 years have passed since last update.

備忘録

Last updated at Posted at 2019-09-21

proxomitron

スクリプトを読み込まない(簡易版)

default.cfg
(1)
Match = "<script src="http://xxx.*"></script>"
(2)
Match = "https://www.xxx.com/xxx.js"

スタイルシートを読み込まない(簡易版)

default.cfg
Match = "rel="stylesheet""
Replace = "></link>"

使用前

test.html
<link rel="stylesheet" type="text/css" href="xxx.css">

使用後

test.html
<link ></link> type="text/css" href="xxx.css">

コードを追加する

default.cfg
Match = "<ul class="xxx">"
Replace = "<ul class="xxx"><a href="#contents">GO TO NEXT</a>"

書き換え

default.cfg
(1) 値の書き換え
Match = "<input type="hidden" name="xxx" value="0">"
Replace = "<input type="hidden" name="xxx" value="15">"
(2) 非表示化
Match = "<ul class="xxx">"
Replace = "<ul class="xxx" style="display:none">"
(3) 同じタブで開かせる
Match = "<form action="xxx" method="get"  target="_blank">"
Replace = "<form action="xxx" method="get" target="_self">"

GreaseMonkey

test.js
Ar_input = document.getElementsByTagName('input');

for (let i=0;i<Ar_input.length;i++){
    if (Ar_input[i].type == "radio" || Ar_input[i].type == "checkbox"){
        Ar_input[0].checked = true;
        clickSubmit();
        break;
    }
}

function clickSubmit(){

    for (let j=0;j<Ar_input.length;j++){
        if (Ar_input[j].type == "submit"){
            Ar_input[j].click();
            break;
        }
    }

}

Ar_input[0]は、間違いではなく、敢えてそうしたはず。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0