Old Reddit Mobile Reader

Make old.reddit.com mobile friendly by moving sidebar to the top and hiding some non-essential elements.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Old Reddit Mobile Reader
// @namespace   Violentmonkey Scripts
// @match       http://old.reddit.com/*
// @match       https://old.reddit.com/*
// @grant       none
// @version     0.3
// @author      j239872933
// @description Make old.reddit.com mobile friendly by moving sidebar to the top and hiding some non-essential elements.
// @license     MIT
// ==/UserScript==

(function () {
    'use strict';
    $('html').prepend(`<meta name="viewport" content="width=device-width, initial-scale=1"/>`);
    $('head').append(`
<style type="text/css">
  .side {
    float: none;
  }
  .linkinfo,
  .premium-banner-outer,
  .titlebox,
  .infobar,
  .sidecontentbox,
  .read-next-container {
    display: none !important;
  }
  .content[role="main"],
  .commentarea,
  .sitetable {
    margin-right: 0px !important;
  }
</style>`);
  //  {
})();