byfandom blog link

insert link to your own blog

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

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 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         byfandom blog link
// @version      0.2
// @description  insert link to your own blog
// @namespace    https://greasyfork.org/users/36620
// @match        http*://*.byfandom.org/blogs*
// @grant        none
// ==/UserScript==
(function($) {
    $('body').ready(function() {
        var toblog = document.createElement('li');
        var link = document.createElement('a');
    
        var name = $('.ow_console_dropdown_hover a').attr('href');
        name = '/blogs/user/'+name.slice(name.lastIndexOf('/')+1);
        link.setAttribute('href',name);
    
        var view = document.createTextNode('view my blog');
        var span = document.createElement('span');
        span.appendChild(view);
        link.appendChild(span);
        toblog.appendChild(link);
    
        $('.ow_content_menu').append(toblog);
    });
})(window.jQuery);