Tanki Faruk
Öğrenci
- Katılım
- 15 Aralık 2017
- Mesajlar
- 7
- Reaksiyon puanı
- 1
- Puanları
- 3
- Yaş
- 27
JavaScript:
// ==UserScript==
// @name Forum Shiftdelete
// @namespace https://rucesocial.com
// @version 0.1
// @description Artık özel mesaj atmak çok kolay !
// @author You
// @match https://*.forum.shiftdelete.net/*
// @grant none
// ==/UserScript==
(function() {
document.onreadystatechange = () => {
var x = document.getElementsByClassName("message-inner");
var i;
for (i = 0; i < x.length; i++) {
var username = document.getElementsByClassName("message-name");
username=username[i].innerText;
var linkEkle = document.getElementsByClassName("actionBar-set--external");
var node = document.createElement("a");
node.innerHTML=" Hızlı ÖM";
node.style.paddingLeft ="10px";
var baslik = document.getElementsByTagName("h1");
baslik=baslik[0].innerText;
var text;
for (let index = 0; index < 10; index++) {
text+=" ";
}
node.setAttribute("href", "https://forum.shiftdelete.net/konusmalar/ekle?to="+username+"&title="+baslik+"&message="+"Merhabalar şu konu hakkında detaylı bilgi alabilir miyim ? : "+window.location.href+" Bu mesaj Hızlı ÖM eklentisi kullanarak atılmıştır: https://github.com/rucesocial/Xenforo-Fast-PM");
node.setAttribute("class","fas fa-comments");
node.setAttribute("title","www.rucesocial.com");
node.setAttribute("id","fontx");
linkEkle[i].appendChild(node);
}
};
})();