Pixiv link

None

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Pixiv link
// @namespace   nani
// @description None
// @include     https://chan.sankakucomplex.com/post/show/*
// @include     https://gelbooru.com/index.php?page=post&s=view&id=*
// @include     http://gelbooru.com/index.php?page=post&s=view&id=*
// @run-at      document-end
// @version     0.1.1
// @grant       none
// ==/UserScript==
var origlink = document.body.querySelector('[href*="i.pximg.net"]').getAttribute("href");
var changedlink = origlink.replace(/.+(?:i\.pximg\.net)\/img-original\/img\/(?:\d+\/)+(.+)_p(?:\d+)\.(?:.+)/, "$1"); 
var div = document.getElementById('stats');
var creatediv = document.createElement("div");
creatediv.innerHTML = "Source correction: <a href=http://www.pixiv.net/member_illust.php?mode=medium&illust_id=" + changedlink + ">Pixiv</a>";
div.appendChild(creatediv);