Ptbnth / Ptbnth.github.io

❙ My WebPage ❙
https://Ptbnth.github.io
0 stars 0 forks source link

話し合い #1

Open haruymth opened 1 year ago

haruymth commented 1 year ago

ここで話し合いができます

haruymth commented 1 year ago

よかったです

haruymth commented 1 year ago

あとglitch来てくださi((n回目

Ptbnth commented 1 year ago

はるさんへ

https://patiban0.glitch.me って抜けちゃいました?(なぜかコードが残ってる)

Ptbnth commented 1 year ago

はるさんへ

あ、コードは消えてる…index.htmlで適当に

Hello

とか入れといてもらえませんか?(多分それに変わってくれる)

haruymth commented 1 year ago

おkです

haruymth commented 1 year ago

はるさんへ

あ、コードは消えてる…index.htmlで適当に

Hello

とか入れといてもらえませんか?(多分それに変わってくれる)

え?どういうことですか?

Ptbnth commented 1 year ago

え?どういうことですか?

https://patiban0.glitch.me が残ってるんです。((glitchのコードは消えているけど一気に消したからか、サイトにscript配布とかホームとか見れるようになっている)) なのでh1タグとかでなんか文字入れてもらえたら切り替わると思うんです

haruymth commented 1 year ago

なるほど

haruymth commented 1 year ago

やっときました

Ptbnth commented 1 year ago

やっときました

ありがとうございます!!((変更されてました

haruymth commented 1 year ago

なんかツール色々提供したのが良かったみたい

Ptbnth commented 1 year ago

なんかツール色々提供したのが良かったみたい

すげぇ toolsのviewmessagesってなんですか?

haruymth commented 1 year ago

あ、それは作成中のやつです 最近手が止まってます()

Ptbnth commented 1 year ago

haruymth

yukkuさんのcopylink(コメントID表示)のやつを鎖マークタップでコピーできるようにできませんか?(ScratchAddonの機能みたいに)

haruymth commented 1 year ago

haruymth

yukkuさんのcopylink(コメントID表示)のやつを鎖マークタップでコピーできるようにできませんか?(ScratchAddonの機能みたいに)

一応できますよ

Ptbnth commented 1 year ago

一応できますよ

時間あるときにお願いしてもいいですか?(今の状態だと鎖をタップすると一時的にコメントが2つに増えるバグがあります)

haruymth commented 1 year ago

一応できますよ

時間あるときにお願いしてもいいですか?(今の状態だと鎖をタップすると一時的にコメントが2つに増えるバグがあります)

一応できました

Ptbnth commented 1 year ago

ありがとうございます!((シャワー入ってきます

haruymth commented 1 year ago

okdesu

Ptbnth commented 1 year ago

okdesu

リンクがタップできるようにはなったんですけどcopyはできなかったです。()

haruymth commented 1 year ago

まじすか?

Ptbnth commented 1 year ago

一応できますよ

時間あるときにお願いしてもいいですか?(今の状態だと鎖をタップすると一時的にコメントが2つに増えるバグがあります)

一応できました

コードほしいです

Ptbnth commented 1 year ago

あ、(リンクタップでコピーできてた)

Ptbnth commented 1 year ago

haruymth

はるさんのサイトの相互リンクのリンクをgithubのサイトに変更してほしいです。

haruymth commented 1 year ago

あ〜なるほどおkです

haruymth commented 1 year ago

あとなんで僕のメッセージ削除してるんですか あ、コード書いてあったからか

Ptbnth commented 1 year ago

はい

Ptbnth commented 1 year ago

Haruymth

listpage(hack-list)のhistory2.jsは履歴増加するコードなんですけど、履歴に追加されるタブのiconを変更することは可能ですか?(履歴には実行したサイトのタブが表示される)

haruymth commented 1 year ago

履歴ってchromeの履歴ですか?

Ptbnth commented 1 year ago

履歴ってchromeの履歴ですか?

はい。

haruymth commented 1 year ago

Haruymth

listpage(hack-list)のhistory2.jsは履歴増加するコードなんですけど、履歴に追加されるタブのiconを変更することは可能ですか?(履歴には実行したサイトのタブが表示される)

無理ですね多分

Ptbnth commented 1 year ago

Haruymth

listpage(hack-list)のhistory2.jsは履歴増加するコードなんですけど、履歴に追加されるタブのiconを変更することは可能ですか?(履歴には実行したサイトのタブが表示される)

無理ですね多分

ぎぇ、((履歴に最後に追加されるタブは変更できたんですよね…(履歴数回whileとかと〇++で繰り返すことでできたりしませんか)

haruymth commented 1 year ago

ちょっと見てみますね あと傾向のりました Screenshot 2023-01-15 18 32 11

haruymth commented 1 year ago

え、どういうことですか?

Ptbnth commented 1 year ago

ちょっと見てみますね あと傾向のりました Screenshot 2023-01-15 18 32 11

すご^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Ptbnth commented 1 year ago

header固定できませんか?(固定したらbackground-colorだけ消えた)

haruymth commented 1 year ago

そんなことあります?()

Ptbnth commented 1 year ago

そんなことあります?()

悲しいことに、ありましたね。()

haruymth commented 1 year ago

()

Ptbnth commented 1 year ago

はるさんへ

ここのハンバーガーメニューを開く三本線が右によってるんですけどどうしたら治りますか?

haruymth commented 1 year ago

はるさんへ

ここのハンバーガーメニューを開く三本線が右によってるんですけどどうしたら治りますか?

別にそれでも全然悪くないとは僕は思いますよ。 直したいならmarginとかをいじればいけるとおもいますよ

Ptbnth commented 1 year ago

htmlにscriptタグで2つのjsファイルを指定したいんですけど、それってできませんか?(include.jsとmain.jsを召喚したら片方しか使われなかった)

haruymth commented 1 year ago

2つも普通にタグ2つで召喚されるはずです

Ptbnth commented 1 year ago

2つも普通にタグ2つで召喚されるはずです

https://ptbnth.github.io/war/ で、main.jsとinclude.jsを召喚するとinclude.jsの効果が消えます…

Ptbnth commented 1 year ago

warのpass入力欄&OKボタンの位置を下に下げることってできませんか?(&footer下に表示)

Ptbnth commented 1 year ago

おそらくこれでその機能を残したやつにできたと思います

ありがとうございます!(コメント消します)

Ptbnth commented 1 year ago

haruymth

TypeError: Failed to fetch

と出てきました

haruymth commented 1 year ago

まじすか

haruymth commented 1 year ago

そのコードみせてください()

Ptbnth commented 1 year ago
(async () => {
try {
    let userList = prompt("ユーザーを改行で分けて入力").split("\n");
    userList.forEach(function (value, index) {
    userList[index] = value.trim();
    })
    let username = [];
    let count = 0;
    let password = prompt("パスワードは?(全員)");
    let category = "13";
    let projectId = location.href.replace(/[^0-9]/g, "");
    for (let i = count; i < userList.length; i++) {
    function getCookieArray() {
        var arr = new Array();
        if (document.cookie != '') {
        var tmp = document.cookie.split('; ');
        for (var i = 0; i < tmp.length; i++) {
            var data = tmp[i].split('=');
            arr[data[0]] = decodeURIComponent(data[1]);
        }
        }
        var memo = arr;
        var token = memo['scratchcsrftoken'];
        return token
    }
    function printStatus(status,success,faild){
        if (status == 200) {
            console.log(`${userList[i]}${success}${i + 1}人目`);
        } else {
            console.error(`${userList[i]}${faild}${i + 1}人目 ステータスコード:${status}`);
        }
    }
    let token = getCookieArray();

    await fetch("https://scratch.mit.edu/accounts/logout/", { method: "POST", "headers": { "x-csrftoken": token } });
    let a = await fetch("https://scratch.mit.edu/accounts/login/", {
        method: "POST",
        body: JSON.stringify({
        "username": userList[i],
        "password": password,
        "useMessages": false
        }),
        "headers": {
        "x-csrftoken": token,
        "x-requested-with": "XMLHttpRequest"
        }
    });
    let trend=[prompt("❤と⭐をつけたいprojectIDを入力")];
    for(let j=0;j<1;j++){
        let xtoken = (await (await fetch("/session/", { headers: { "X-Requested-With": "XMLHttpRequest" } })).json()).user.token;
        token = getCookieArray();
        let love=await fetch(`https://api.scratch.mit.edu/proxy/projects/${trend[j].id}/loves/user/${userList[i]}`,{
            method:"POST",
            headers:{
                "x-csrftoken":getCookieArray(),
                "x-token":xtoken,
                "x-requested-with": "XMLHttpRequest"
            },
            credentials:"include"
        });
        printStatus(love.status,"で"+`${trend}`+"のプロジェクトに♡をつけたよ","で"+`${trend}`+"のプロジェクトに♡をつけれなかったよ");
        let favorite=await fetch(`https://api.scratch.mit.edu/proxy/projects/${trend[j].id}/favorites/user/${userList[i]}`,{
            method:"POST",
            headers:{
                "x-csrftoken":getCookieArray(),
                "x-token":xtoken,
                "x-requested-with": "XMLHttpRequest"
            },
            credentials:"include"
        });
        printStatus(favorite.status,"で"+`${trend}`+"のプロジェクトに☆をつけたよ","で"+`${trend}`+"のプロジェクトに☆をつけれなかったよ");
    }
    }
    var sound = new Audio('https://soundeffect-lab.info/sound/anime/mp3/shakin1.mp3');
    sound.play();
    console.log("全員分変え終わったぞ")
} catch (e) {
    console.error(e);
}
})();
window.addEventListener('error', (event) => {
    console.log(event.path)
});