BiggerGocomics

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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%';
}