Category : google-apps-script

code on js console i was trying to get urls from google images using the code in the image but got an error VM851:3 Refused to load the script ‘https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js’ because it violates the following Content Security Policy directive: "script-src ‘report-sample’ ‘nonce-7yf6cC+2Dqd6W6qfqniaQQ’ ‘unsafe-inline’". Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as ..

Read more

I am trying to build An api with google apps script which can encrypt and decrypt strings. Below is my code: function doPost(e){ const body = JSON.stringify(e.postData.contents) const FlemishGiant = body.FlemishGiant; const NetherlandDwarf = body.NetherlandDwarf; const key = "$9681$%^&d"; const cipher = new cCryptoGS.Cipher(key, ‘aes’); if (body.includes("FlemishGiant")) { var encryptedMessage = cipher.encrypt(FlemishGiant); var json = ..

Read more

I’m trying to include a duplicate check in a script that uses a Google Sheet as an input form for data that sends it to another spreadsheet. I’m trying to set up the check to prevent sending if there are duplicates present or no data, but I keep getting the message saying that there are ..

Read more