dc left align

2025. 1. 31.

As of 2025-01-31. See the latest version.

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        dc left align
// @namespace   Violentmonkey Scripts
// @match       https://gall.dcinside.com/*
// @grant       none
// @version     1.1
// @author      -
// @license MIT 
// @description 2025. 1. 31.
// ==/UserScript==

try{
  if (window.innerWidth < 1600){
    document.getElementsByClassName('dchead')[0].style.margin = '0 auto 0px 20px'
    document.getElementsByClassName('gnb')[0].style.margin = '0 auto 0px 20px'
    document.getElementsByClassName('visit_bookmark')[0].style.margin = '0 auto 0px 20px'
    document.getElementsByClassName('wrap_inner')[0].style.margin = '0 auto 0 0'
    document.getElementsByClassName('area_links')[0].style.left = '0'
    document.getElementsByClassName('stickyunit')[0].style.display = 'none'

    document.getElementById('container').style.margin = '20px auto 0px 20px'
  }
} catch{}