[Konachan / yande.re] Forum List: Default to Last Page

Replaces the "last" links in the forum list with "first" links and changes the main links to link to the last 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		[Konachan / yande.re] Forum List: Default to Last Page
// @namespace	Zolxys
// @description	Replaces the "last" links in the forum list with "first" links and changes the main links to link to the last page.
// @include		/^https?://konachan\.(com|net)/forum/?($|\?|#)/
// @include		/^https?://yande\.re/forum/?($|\?|#)/
// @version		1.1
// ==/UserScript==
var t = document.getElementById('forum').getElementsByTagName('table')[0].getElementsByTagName('td');
for (var i = 0; i < t.length; ++i) {
	var a = t[i].getElementsByTagName('a');
	if (a.length == 2)
	  if (a[1].innerHTML.trim() == 'last') {
		var h = a[0].href;
		a[0].href = a[1].href;
		a[1].href = h;
		a[1].innerHTML = 'first';
	}
}