Help us understand the problem. What is going on with this article?

備忘録

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]は、間違いではなく、敢えてそうしたはず。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away