Greasy Fork

自動的に全文にする ITmeida

自動的に全文にする

目前为 2019-01-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         自動的に全文にする ITmeida
// @namespace    https://greasyfork.org/ja/users/6866-ppppq
// @version      0.3.20190123
// @description  自動的に全文にする
// @author       You
// @match        http://*.itmedia.co.jp/*/spv/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    var loc = document.location;
    var url = new URL(loc.href);

    if (url.pathname.includes('_0.html')) {
        url.pathname = url.pathname.replace('_0.html', '.html');
        loc.replace(url.href);
    }
})();