Inbox (Part 1)

This way keywords are not easily visibble


untitled script pic (60)

can't you just look inside and see words? that's EASILY VISIBLE

Yes, but first block can be removed after run.
Variable "filter" still will be holding expression.

ok bye for today see y'all tommorow or something

just click on the image ot open it in an new tab

I know I said it before, but @bh please don't ban me because of my Swear Word Detector

okay, try this:
(assuming the return value from before is called myPromise and it's a JS Promise object)
send anything to clipboard script pic

What do I put before that script?

I can't figure it out.

Code:

var myHeaders = new Headers();
myHeaders.append("apikey", "P4e5DYXcQlFIsrHIMWwr9VGKh3gKnGdP");

var raw = "THIS%20IS%20TEXT";

var requestOptions = {
  method: 'POST',
  redirect: 'follow',
  headers: myHeaders,
  body: raw
};

fetch("https://api.promptapi.com/bad_words?censor_character=*", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

It's returning a promise:

I decided to name our mail program "Snail!" which stands for "Snap! Mail". However, "Smail!" would sound kind of weird and awkward to say, so I decided to name it "Snail!" as snail is easy to say and it is kind of a funny name for a Mail program.

Snail mail is already a term and doesn't relate to Snap!, so that could be confusing.
Also, you just walked up and named it yourself without agreement from the other members?

He said

The main problem with this is that at the end, it says

.then(result => console.log(result))

Which is just logging the result to the console instead of actually doing anything with it.
Here's the code:
untitled script pic

var myHeaders = new Headers(),
    value = null;
myHeaders.append("apikey", "P4e5DYXcQlFIsrHIMWwr9VGKh3gKnGdP");

var raw = "THIS%20IS%20TEXT";

var requestOptions = {
  method: 'POST',
  redirect: 'follow',
  headers: myHeaders,
  body: raw
};

fetch("https://api.promptapi.com/bad_words?censor_character=*", requestOptions)
  .then(response => response.text())
  .then(result => value = result)
  .catch(error => console.log('error', error));
return function () {return value};

Should work, but I haven't tested because I can't wrap my head around any other part of it.

Actually, he said

YUP. IT WORKS.
OpenSap - Media - w3 - Unit 2_ Exercises 1 script pic (1)

@slate_technologies @earthrulerr The Bad Word/Profanity detector is done.
https://snap.berkeley.edu/snap/snap.html#present:Username=joecooldoo&ProjectName=Bad%20Word%2FProfanity%20Detector

Why don't we make this use a whitelist? (For many reasons.)

You can easily hack a whitelist.

and so can a swear word detector.

I'm going to hide it...