BiggerGocomics

Changes the page to display directly the bigger version of the comic

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

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

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        BiggerGocomics
// @namespace   https://github.com/Lorentz83/
// @description Changes the page to display directly the bigger version of the comic
// @include     http://www.gocomics.com/*
// @icon        https://raw.githubusercontent.com/Lorentz83/userscripts/master/BiggerGocomics/icon.png
// @version     0.9a
// @grant       none
// @license     GPLv2; http://www.gnu.org/licenses/
// ==/UserScript==

var photo = document.querySelector('#content a.photo');
if ( photo !== null ) {
  var id = photo.hash;
  var bigPhoto = document.querySelector(id);

  photo.style.display = 'none';
  bigPhoto.style.display = 'block';
  bigPhoto.id = 'not-an-id';

  document.querySelector('#content').style.width = '100%';
  document.querySelector('#content .feature').style.width = '100%';
}