kitapyurdu+

Kitapyurdundaki kitapların ve yazarların Goodreads üzerindeki sayfalarına kolayca ulaşılmasını sağlar

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         kitapyurdu+
// @namespace    http://www.kitapyurdu.com/
// @version      0.1
// @description  Kitapyurdundaki kitapların ve yazarların Goodreads üzerindeki sayfalarına kolayca ulaşılmasını sağlar
// @author       Onur Uslu
// @match        http://kitapyurdu.com/*
// @match        http://www.kitapyurdu.com/*
// @match        https://kitapyurdu.com/*
// @match        https://www.kitapyurdu.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var goodReadsLogo = 'https://s.gr-assets.com/assets/icons/gr-author-badge_23x23.png';

    $('.manufacturers [itemprop=name], .author span[itemprop=name]').each(function(e){
        console.log($(this).html());
       $(this).parent().parent().prepend(
           '<a href="https://www.goodreads.com/search?utf8=%E2%9C%93&q='+
           $(this).text().replace(' ','+')+
           '&search_type=books&search%5Bfield%5D=author"><img src="'+goodReadsLogo+'" style="width: 15px;" alt="G"></a>');
    });
    $('.name').each(function(e){
        if(!$(this).text())
            return;

        $(this).append(
            '<a href="https://www.goodreads.com/search?utf8=%E2%9C%93&q='+
            $(this).text()+
            '&search_type=books&search%5Bfield%5D=title" style="float:right; margin-top: -21px; position:relative;"><img src="'+goodReadsLogo+'" style="width: auto; position: absolute; left:-23px; z-index:999;" alt="G"></a>');
    });

    $('.product-heading').append(
        '<a href="https://www.goodreads.com/search?utf8=%E2%9C%93&q='+
        $('.product-heading').text()+
        '&search_type=books&search%5Bfield%5D=title" style="float:right;"><img src="'+goodReadsLogo+'" alt="G"></a>');


})();