Softcobra Unadblocker and Decoder (2022)

Disable adblocker on softcobra.net and decode links when possible

< Feedback on Softcobra Unadblocker and Decoder (2022)

Review: OK - script works, but has bugs

§
Posted: 22.07.2022

Tip, try this to decode in spite of CORS and Cloudflare.

You'll need to visit (or open new tab) https://www.nin10news.net once, to have cloudflare challenge set a cookie. From there you can:

- // @grant           none
+ // @grant           GM.xmlHttpRequest
      await new Promise((res, rej) => {
        GM.xmlHttpRequest({
          url: "https://www.nin10news.net/wp-content/themes/twentysixteen/inc/decode.php",
          method: "POST",
          headers: {
            "Content-Type": "application/x-www-form-urlencoded"
          },
          data: formBody({
            data: currRow
          }),
          onload: (response) => {
            decodedLink = atob(response.responseText);
            res();
          },
          onerror: rej,
          onabort: rej,
          ontimeout: rej
        });
      });
§
Posted: 22.07.2022
Edited: 22.07.2022

Update for the onload.

Also to avoid a problem with "td"s disappearing while the script runs.

(async () => {
  // Some issue with loading the full list of elements.
  // Delay by a few seconds.
  await new Promise((res, _) => setTimeout(res, 3000));
          onload: (response) => {
            switch (response.status) {
              case 503:
                window.alert("Need to do a cloudflare challenge");
                return rej();
              case 200:
                decodedLink = atob(response.responseText);
                return res();
              default:
                return rej();
            }
          },
§
Posted: 29.07.2022

Can confirm that this works, but you have to approve the tampermonkey cross origin request

Post reply

Sign in to post a reply.