From 4b63aacf98875e7705cc4899b5cac14c5b94c20e Mon Sep 17 00:00:00 2001 From: Floens Date: Sat, 18 Mar 2017 13:53:35 +0100 Subject: [PATCH] Reorganize docs folder --- docs/{ => 4chan}/4chanresponses.txt | 0 docs/{ => 4chan}/Intervals.txt | 0 docs/{ => 4chan}/boardsjson.txt | 0 docs/{ => 4chan}/delform.txt | 0 docs/{ => 4chan}/gcaptcha.txt | 0 docs/{ => 4chan}/pass.txt | 0 docs/checkcaptcha.txt | 46 ------------------------ docs/{FileNotice.txt => file_notice.txt} | 0 8 files changed, 46 deletions(-) rename docs/{ => 4chan}/4chanresponses.txt (100%) rename docs/{ => 4chan}/Intervals.txt (100%) rename docs/{ => 4chan}/boardsjson.txt (100%) rename docs/{ => 4chan}/delform.txt (100%) rename docs/{ => 4chan}/gcaptcha.txt (100%) rename docs/{ => 4chan}/pass.txt (100%) delete mode 100644 docs/checkcaptcha.txt rename docs/{FileNotice.txt => file_notice.txt} (100%) diff --git a/docs/4chanresponses.txt b/docs/4chan/4chanresponses.txt similarity index 100% rename from docs/4chanresponses.txt rename to docs/4chan/4chanresponses.txt diff --git a/docs/Intervals.txt b/docs/4chan/Intervals.txt similarity index 100% rename from docs/Intervals.txt rename to docs/4chan/Intervals.txt diff --git a/docs/boardsjson.txt b/docs/4chan/boardsjson.txt similarity index 100% rename from docs/boardsjson.txt rename to docs/4chan/boardsjson.txt diff --git a/docs/delform.txt b/docs/4chan/delform.txt similarity index 100% rename from docs/delform.txt rename to docs/4chan/delform.txt diff --git a/docs/gcaptcha.txt b/docs/4chan/gcaptcha.txt similarity index 100% rename from docs/gcaptcha.txt rename to docs/4chan/gcaptcha.txt diff --git a/docs/pass.txt b/docs/4chan/pass.txt similarity index 100% rename from docs/pass.txt rename to docs/4chan/pass.txt diff --git a/docs/checkcaptcha.txt b/docs/checkcaptcha.txt deleted file mode 100644 index 99730f5f..00000000 --- a/docs/checkcaptcha.txt +++ /dev/null @@ -1,46 +0,0 @@ -mode=checkcaptcha only works on some boards! -Until a proper api exists for checking what boards have this option, it will not be implemented. -(that is, a proper way to check if "var preupload_captcha = true" was set) - - -Send to the normal url "https://sys.4chan.org/" + board + "/post"; -Used in the extension for checking if the captcha is correct when submitting a large file - -POST: -mode=checkcaptcha -challenge= -response= - - -returns json: -{ - "token": "", - "error": "", - "fail": "" -} - -In the extension: - -if (response.token) { - a = $.id("qrCapToken"), - a.value = response.token, - a.removeAttribute("disabled"), - QR.submitDirect() -} else { - if (response.error) { - QR.reloadCaptcha(), - QR.btn.value = "Post", - QR.showPostError(response.error)) - } else { - if (response.fail) { - console.log(b.fail), - QR.submitDirect() - } - } -} - -qrCapToken is a hidden form field with the name captcha_token -So when token exists in the json, send a normal reply with captcha_token - - - diff --git a/docs/FileNotice.txt b/docs/file_notice.txt similarity index 100% rename from docs/FileNotice.txt rename to docs/file_notice.txt