meh.com Adv. Portrait Editor - Power User Edition

Advanced portrait-orientation editor for the meh.com forums, button selection inspired by @Thumperchick

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        meh.com Adv. Portrait Editor - Power User Edition
// @namespace   https://meh.com
// @description Advanced portrait-orientation editor for the meh.com forums, button selection inspired by @Thumperchick
// @include     https://*meh.com/forum*
// @version     1
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('@media screen and (max-width:576px) { #add-comment-desktop { display: block; margin: 32px auto; width: 304px; } .editor textarea { font-size: 100% !important; height: 73px !important } li[id*="wmd-bold-button"], li[id*="wmd-italic-button"], .wmd-spacer1, li[id*="wmd-code-button"], li[id*="wmd-heading-button-reply"], li[id*="wmd-hr-button-reply"], .wmd-spacer3, li[id*="wmd-undo-button"], li[id*="wmd-redo-button"], .wmd-spacer4, li[id*="wmd-emoji-button"], #add-comment-mobile-footer { display: none; } li[id*="wmd-link-button"], li[id*="wmd-quote-button"] { margin-left: -75px; } li[id*="wmd-image-button"], li[id*="wmd-olist-button"], li[id*="wmd-ulist-button"], li[id*="wmd-heading-button"], li[id*="wmd-hr-button"] { margin-left: -100px; } .wmd-spacer2 { margin-left: -89px; }}');