4chan json Image Viewer - Thread Float Link

Float URL to View Thread using "4chan json Image Viewer" (https://greasyfork.org/en/scripts/418726-4chan-json-image-viewer)

Stan na 17-12-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         4chan json Image Viewer - Thread Float Link
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  Float URL to View Thread using "4chan json Image Viewer" (https://greasyfork.org/en/scripts/418726-4chan-json-image-viewer)
// @author       Czy [2020]
// @match        https://boards.4chan.org/wg/thread/*
// @grant        none
// ==/UserScript==

// #######REQUIRES "4chan json Image Viewer" for full use.

// FOR USE ON /wg/ threads Only.
// -- keep up to date, may add ability to view other threads in the future.

(function() {
    'use strict';


    var el ;
// displays Thread number (Lower right corner)
var dirhref = window.location.pathname.replace("/wg/thread/", "").split('/')[0]; // /wg/thread/7662864.json RETURNS Thread Number

el =`
	<div style="background:#eeeeee; position:fixed; bottom:0px; right:0px;">
        <a href="https://a.4cdn.org/wg/thread/`+dirhref+`.json" target="_blank">
            <h1>ImgViewer</h1>
        </a>
    </div>`;

//ADDS el to PAGE
document.body.innerHTML += el;
})();