arxiv comment

Show paper comments on the pdf preview page.

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         arxiv comment
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Show paper comments on the pdf preview page.
// @author       You
// @match        https://arxiv.org/pdf/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=arxiv.com
// @grant        unsafeWindow
// @require      https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var xx = '';
    $.get(window.location.href.replace('/pdf', '/abs'), function(data){
        xx = $('.comments', data).last().text().replace('Title:', '');
        console.log(xx);
        if (xx !== undefined && xx !== ''){
            $("body").append(`<div style='left: 50px;top: 10px;background: #1a59b7;color:#ffffff;z-index: 9999;position: fixed;padding:5px;text-align:center;width: 300px;height: 22px;border-bottom-left-radius: 4px;border-bottom-right-radius: 4px;border-top-left-radius: 4px;border-top-right-radius: 4px;'>${xx}</div>`);
        }
    });
})();