likera retroshare

Collects all long form retroshare certifications on the current page for adding all in one shot

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name    likera retroshare
// @license MIT
// @version  1
// @grant    none
// @locale https://www.likera.com/
// @description Collects all long form retroshare certifications on the current page for adding all in one shot
// @include  https://www.likera.com/forum/mybb/Thread-RetroShare-certs*
// @run-at  document-end
// @namespace https://greasyfork.org/users/1539629
// ==/UserScript==

var x = document.getElementsByClassName("post_body scaleimages");

var z = 0;

var certs = '';

for(let j = 0; j < x.length; j++){
  var position = x[j].textContent.search("CQEGA");
  //console.log(z);
  z++;
  if(position != -1){ // found something :)
    var parts = x[j].textContent.split('\n\n');
    for (let i = 0; i < parts.length; i++) {
      if(parts[i].search("CQEGA") != -1){
        var cert = parts[i].replace(/\n/g, ''); // remove new lines
        certs += cert + '\n';
      }
    }
  }
}
console.log(certs);