Scripts don't work Tampermonkey

Previously used Chrome, there this script works very well. Switched to Brave and then a problem arose. I completely transferred this script to Brave, but it does not work. I tried to disable ad blockers and other blockers, but this did not bring any result. Please help me solve this problem. I myself do not understand programming well.

Спойлер

// ==UserScript==
// @name Загрузка скринов из раздачи для pornolab.net
// @description Загрузка скринов из раздачи
// @namespace memmes
// @include https://pornolab.net/forum/tracker.php*
// @version 1
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// ==/UserScript==

var re = /((<a href=.?(?:radikal|fastpic|imagebam|picclick|lostpic|drlink|freescreens|imgbox|turboimagehost|imagevenue).?</a>))/g;

var MyMas = new Array();

var e = document.getElementsByClassName(‘tCenter’);
for (var em = 0; em < e.length; em++)
{
elem = e[em];
elem.addEventListener(‘click’, MyFunc);
}

function MyFunc()
{
var Cell2 = this.cells[3];

if (Cell2.hasAttribute('MyLoad') === false)
{
    CellHREF = Cell2.querySelector('a:nth-child(1)').href;
    console.log(CellHREF);
    Cell2.setAttribute('MyLoad', 'true');

    var MyDiv = document.createElement('div');
    MyDiv.setAttribute('MyDiv', 'true');
    Cell2.appendChild(MyDiv);

    MyMas.push(Cell2);
    MdownloadPage(CellHREF);
} else
{
    Cell2.removeAttribute('MyLoad');
    LoadDIV = Cell2.querySelector('div:nth-child(2)');
    LoadDIV.remove();
}

}

function MdownloadPage(url) {
var data = GM_xmlhttpRequest({
method: ‘GET’,
url: url,
headers: {
‘User-Agent’: ‘Mozilla/5.0’,
‘Accept’: ‘text/xml’
},
onload: function (response) {

        for (var em = 0; em < MyMas.length; em++)
        {
            if (MyMas[em].querySelector('a:nth-child(1)').href==response.finalUrl){
                TargetEm = MyMas[em];
                MyMas.splice(em, 1);
                break;
            }
        }

        LoadDIV = TargetEm.querySelector('div:nth-child(2)');

        var m;
        var nom = 0;

        while ((m = re.exec(response.responseText)) !== null) {

            if (m.index === re.lastIndex) {
                re.lastIndex++;
            }

            if ((nom % 4) == 0) {
                LoadDIV.innerHTML += '</br>';
            }

            res = m[0];
            res = res.replace(new RegExp('class="postLink"', 'g'),'');
            res = res.replace(new RegExp('var class="postImg" title', 'g'),'img src');
            res = res.replace(new RegExp('</var>', 'g'),'');

            LoadDIV.innerHTML += res;
            nom++;
        }
    }
});

}

Go to menu, then Extensions - Manage extensions - then activate Developer mode at the top right. I was confused why my Tampermonkey-scripts didn’t work. They worked fine after I enabled developer mode :slight_smile: