Fix Link Bug - bookset.io

2020/11/11 下午5:38:11

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        Fix Link Bug - bookset.io
// @namespace   Violentmonkey Scripts
// @match       http://www.bookset.io/read/Learn-Vue-Source-Code/*
// @grant       none
// @version     1.0
// @author      haroro
// @description 2020/11/11 下午5:38:11
// ==/UserScript==
window.onload = function () {
  var nodeList = $(".article-menu-detail a")
  for (var i = 0;i < nodeList.length; i++) {
    var node = nodeList[i]
    var params = $(node).attr('href').split('/')
    var id = params[params.length - 1]
    $(node).attr('href', './'+id)
  }
}