RARBG - Add Magnet Link

Add a magnet link shortcut in browse view of torrents

// ==UserScript==
// @name         RARBG - Add Magnet Link
// @namespace    http://your.homepage/
// @version      0.1
// @description  Add a magnet link shortcut in browse view of torrents
// @author       Cisco
// @match        https://rarbg.to/torrents.php*
// @grant        none
// ==/UserScript==

var magnetImgData = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgd2lkdGg9IjQwMC42NTg3OCIgICBoZWlnaHQ9IjQ1NC45MTM2IiAgIGlkPSJzdmczMDYzIiAgIHZlcnNpb249IjEuMSIgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ3cHJlMCIgICBzb2RpcG9kaTpkb2NuYW1lPSJOZXcgZG9jdW1lbnQgMyIgICBpbmtzY2FwZTpvdXRwdXRfZXh0ZW5zaW9uPSJvcmcuaW5rc2NhcGUub3V0cHV0LnN2Zy5pbmtzY2FwZSI+ICA8c29kaXBvZGk6bmFtZWR2aWV3ICAgICBpZD0iYmFzZSIgICAgIHB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wIC02LjkxOTg0LC05MS4yNDk4MiAtMTI5LjQwMTAyLDAgeiIgICAgICAgICBzdHlsZT0iZmlsbDojOTU5YmEzO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lIiAvPiAgICAgIDxwYXRoICAgICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjYyIgICAgICAgICBpZD0icGF0aDQ3MDkiICAgICAgICAgZD0ibSAzODAuMTQwNzQsNTA3LjY2MDU3IC02LjgzNTkyLDkxLjI0OTgyIDEzMS4zOTMwNCwwLjYwODA2IDEwLjIxMTkyLC05MS44NTc4OCAtMTM0Ljc2OTA0LDAgeiIgICAgICAgICBzdHlsZT0iZmlsbDojOTU5YmEzO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lIiAvPiAgICA8L2c+ICA8L2c+PC9zdmc+';

var cssRules = '' +
'.magnet-cell { text-align: center; } ' +
'.magnet-cell a img { transition: transform 250ms ease; width: 20px; transform: rotate(180deg); padding: 5px 10px; } ' +
'.magnet-cell a:hover img { transform: rotate(270deg); } ' +
'';

var cssBlock = document.createElement('style');

cssBlock.innerText = cssRules;

document.getElementsByTagName('head')[0].appendChild(cssBlock);

var headCell = document.createElement('td');
headCell.innerHTML = 'Magnet';
headCell.classList.add('header6');
headCell.classList.add('header40');

document.querySelector('.lista2t tr:first-child td:nth-child(2)').parentNode.insertBefore(headCell, document.querySelector('.lista2t tr:first-child td:nth-child(2)'));

var torrents = document.querySelectorAll('.lista2 td:nth-child(2) [href^="/torrent/"]');

for ( var i = 0; i < torrents.length; i++ ) {

  (function(i) {

    var url = torrents[i].href;

    var req = new XMLHttpRequest();

    req.open('GET', url);

    req.send();

    req.onreadystatechange = function() {

      if (req.readyState == 4) {

        var pageHTML = req.responseText;

        var magnetURL = pageHTML.match(/href\=\"(magnet[\:\_\-\+\%\?\=\&\;\.0-9a-zA-Z]*)\"/)[1];

        var magnetCell = document.createElement('td');

        magnetCell.classList.add('magnet-cell');

        var magnetLink = document.createElement('a');

        magnetLink.href = magnetURL;

        magnetCell.appendChild(magnetLink);

        var magnetImg = document.createElement('img');

        magnetImg.src = magnetImgData;

        magnetLink.appendChild(magnetImg);

        torrents[i].parentNode.parentNode.insertBefore(magnetCell, torrents[i].parentNode);

      }

    };

  })(i);

}