BiggerGocomics

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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%';
}