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

うーん

Ptbnth commented 1 year ago

親帰ってくるので8時に見ます

haruymth commented 1 year ago

おkです

haruymth commented 1 year ago

おkです

Ptbnth commented 1 year ago

fetchの${trend[j].id}が普通に${trend}でいいとか_?

haruymth commented 1 year ago

あ〜

haruymth 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]}/loves/user/${userList[i]}`,{
            method:"POST",
            headers:{
                "x-csrftoken":getCookieArray(),
                "x-token":xtoken,
                "x-requested-with": "XMLHttpRequest"
            },
            credentials:"include"
        });
        printStatus(love.status,"で"+`${trend[j]}`+"のプロジェクトに♡をつけたよ","で"+`${trend[j]}`+"のプロジェクトに♡をつけれなかったよ");
        let favorite=await fetch(`https://api.scratch.mit.edu/proxy/projects/${trend[j]}/favorites/user/${userList[i]}`,{
            method:"POST",
            headers:{
                "x-csrftoken":getCookieArray(),
                "x-token":xtoken,
                "x-requested-with": "XMLHttpRequest"
            },
            credentials:"include"
        });
        printStatus(favorite.status,"で"+`${trend[j]}`+"のプロジェクトに☆をつけたよ","で"+`${trend[j]}`+"のプロジェクトに☆をつけれなかったよ");
    }
    }
    var sound = new Audio('https://soundeffect-lab.info/sound/anime/mp3/shakin1.mp3');
    sound.play();
    console.log("全員分変え終わったぞ")
} catch (e) {
    console.error(e);
}
})();

こうかなぁ

Ptbnth commented 1 year ago

dekita------------- listpの.envにコピペしてほしいです

Ptbnth commented 1 year ago

もしできたらpassなしでusernameのみのもほしいです(一覧)

haruymth commented 1 year ago

え何をコピーしたらいいんですかね

Ptbnth commented 1 year ago

え何をコピーしたらいいんですかね

g〇〇〇chのlistpageの.envのユーザーリストです。(.env内容全部)

haruymth commented 1 year ago

あー

haruymth commented 1 year ago

コピーしました!

Ptbnth commented 1 year ago

コピーしました!

ありがとうございます!

Ptbnth commented 1 year ago

フッターガシタニイカナイ....................

haruymth commented 1 year ago

javascript:(function () {var a = document.createElement('script');a.src ='https://cdn.jsdelivr.net/gh/FogNetwork/Vapor/vapor.min.js';document.body.appendChild(a);}()) こうですね

haruymth commented 1 year ago

なんかフッター一番下に来るようにできました

Ptbnth commented 1 year ago

javascript:(function () {var a = document.createElement('script');a.src ='[https://cdn.jsdelivr.net/gh/FogNetwork/Vapor/vapor.min.js';document.body.appendChild(a);}()](https://cdn.jsdelivr.net/gh/FogNetwork/Vapor/vapor.min.js';document.body.appendChild(a);%7D())) こうですね

??

Ptbnth commented 1 year ago

なんかフッター一番下に来るようにできました

どうやりましたか?(できたらscripts,mutual,warなどでも下に行くようにしてほしいです。)

haruymth commented 1 year ago

下にscriptsとかも下に行ってないですか?

Ptbnth commented 1 year ago

下にscriptsとかも下に行ってないですか?

ptbnth.github.io/scriptsやmutual.htmlやwar.htmlは行ってないです

haruymth commented 1 year ago

ちょっとまってくださいね

haruymth commented 1 year ago

たぶんこれでいけるはずです

Ptbnth commented 1 year ago

たぶんこれでいけるはずです

バグり散らかしてますw(見てもらったほうがはやい)

haruymth commented 1 year ago

やば()

Ptbnth commented 1 year ago

やば()

まだ直ってないです(ヘッダーが下にあって、war.htmlとかだとfooterが下に行っていないです)

Ptbnth commented 1 year ago

ano.......[[warのstyleが消えてる

Ptbnth commented 1 year ago

はるさんへ

一番下の文字とfooterの間が大きいの直せませんか?(マージンいじっても無理だった)

haruymth commented 1 year ago

ano.......[[warのstyleが消えてる

warのstyleとグローバルのスタイルをいちいち同期させるのがめんどいと思ったんで一本化しました

haruymth commented 1 year ago

form使ってフィルタ解除するやつできなくなりました?

Ptbnth commented 1 year ago

form使ってフィルタ解除するやつできなくなりました?

できます

haruymth commented 1 year ago

まじですか

Ptbnth commented 1 year ago

formsのブロックされました

Ptbnth commented 1 year ago

=Discord使えなくなった

Ptbnth commented 1 year ago

chatwork.comでチャットできませんか(今後)

haruymth commented 1 year ago

まじすか...

haruymth commented 1 year ago

ちなみに学校のフィルタってなんですか?

Ptbnth commented 1 year ago

Ciscoです

haruymth commented 1 year ago

ciscoはしらないですね...

haruymth commented 1 year ago

またあのwidgetでやりますか?

Ptbnth commented 1 year ago

あ〜お願いします

haruymth commented 1 year ago

おkです

haruymth commented 1 year ago

というか

haruymth commented 1 year ago

あのchat serverどうするんですか?

Ptbnth commented 1 year ago

スマホ使えるときに勧めたりします。

haruymth commented 1 year ago

おkです。

haruymth commented 1 year ago

次使えるようになったらとりあえず所有権くれますか?()

Ptbnth commented 1 year ago

リア友の垢はだめって言うのはここに書きます(メアド+'はだめです'ってやります) あ、所有権ですか?

haruymth commented 1 year ago

おkです

haruymth commented 1 year ago

所有権です