WordPress Admin Dark theme, Night mode - all

WordPress Admin Dark theme, Night mode global url

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        WordPress Admin Dark theme, Night mode - all
// @namespace   english
// @description WordPress Admin Dark theme, Night mode global url
// @include     http*://*/wp-admin/*
// @version     1.9
// @run-at document-end
// @grant       GM_addStyle
// ==/UserScript==

// Main - Collapse the Greasy Fork Header

var style = document.createElement('style');
style.type = 'text/css';

style.innerHTML = '        html, body{    background: #333;/*\n*/    background-color: #333;}/*\n*/a {/*\n*/    color: #11c7f3;/*\n*/}h1, h2, h3 {/*\n*/    color: #dadada;/*\n*/}.ac_match, .highlight, .subsubsub a.current {/*\n*/    color: #fff;/*\n*/}#wpadminbar {/*\n*/    color: #d0d0d0;/*\n*/    background: #565656;/*\n*/}#adminmenu, #adminmenuback, #adminmenuwrap {/*\n*/    background: #565656;/*\n*/}#adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus+.wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu {/*\n*/    background: #696969;/*\n*/}#adminmenu a {/*\n*/    color: #e2e2e2;/*\n*/}#adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a, #adminmenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus+.wp-submenu a, .folded #adminmenu .wp-has-current-submenu .wp-submenu a {/*\n*/    color: #ffffff;/*\n*/}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a, #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a {/*\n*/    color: #fff;/*\n*/}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover {/*\n*/    color: #07c4ff;/*\n*/}#wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar>#wp-toolbar span.ab-label, #wpadminbar>#wp-toolbar span.noticon {/*\n*/    color: #e2e2e2;/*\n*/}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus, #wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item, #wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item, #wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus {/*\n*/    color: #13eaf7;/*\n*/    background: #212121;/*\n*/}#wpadminbar .ab-top-menu>li.hover>.ab-item, #wpadminbar .ab-top-menu>li.menupop.hover>.ab-item, #wpadminbar .ab-top-menu>li:hover>.ab-item, #wpadminbar .ab-top-menu>li>.ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus, #wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item, #wpadminbar>#wp-toolbar>#wp-admin-bar-root-default li:hover span.ab-label, #wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary li.hover span.ab-label {/*\n*/    color: #dedede;/*\n*/}.comment-ays, .feature-filter, .imgedit-group, .popular-tags, .stuffbox, .widgets-holder-wrap, .wp-editor-container, p.popular-tags, table.widefat {/*\n*/    background: #545454;/*\n*/}.alternate, .striped>tbody>:nth-child(odd), ul.striped>:nth-child(odd) {/*\n*/    background-color: #404040;/*\n*/}.comment-ays, .feature-filter, .imgedit-group, .popular-tags, .stuffbox, .widgets-holder-wrap, .wp-editor-container, p.popular-tags, table.widefat {/*\n*/    background: #545454;/*\n*/}body{    color: #e8e8e8;}.widefat ol, .widefat p, .widefat tfoot tr td, .widefat tfoot tr th, .widefat thead tr td, .widefat thead tr th, .widefat ul {/*\n*/    color: #ececec;/*\n*/}.widefat td, .widefat th {/*\n*/    color: #d2d2d2;/*\n*/}.tablenav .tablenav-pages {/*\n*/    float: right;/*\n*/    height: 28px;/*\n*/    margin-top: 3px;/*\n*/    cursor: default;/*\n*/    color: #cacaca;/*\n*/}.comment-grey-bubble{    filter: invert(1);}#all-plugins-table .plugins a.delete, #media-items a.delete, #media-items a.delete-permanently, #nav-menu-footer .menu-delete, #search-plugins-table .plugins a.delete, .plugins a.delete, .row-actions span.delete a, .row-actions span.spam a, .row-actions span.trash a, .submitbox .submitdelete, .widget-control-remove, .widget-control-remove:focus {/*\n*/    color: #ff1125;/*\n*/}.notice, div.error, div.updated {/*\n*/    background: #717171;/*\n*/    border-left: 4px solid #fff;/*\n*/    -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);/*\n*/    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);/*\n*/    margin: 5px 15px 2px;/*\n*/    padding: 1px 12px;/*\n*/}.fs-notice.success {/*\n*/    color: #67f967;/*\n*/}.fs-notice .fs-close {/*\n*/    cursor: pointer;/*\n*/    color: #cecece;/*\n*/    float: right;/*\n*/}.fs-notice .fs-close:hover {/*\n*/    color: #e2e2e2;/*\n*/}.subsubsub a .count, .subsubsub a.current .count {/*\n*/    color: #aab6c3;/*\n*/    font-weight: 400;/*\n*/} .postbox {/*\n*/    min-width: 255px;/*\n*/    border: 1px solid #565656;/*\n*/    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    background: #565656;/*\n*/}#dashboard-widgets h3, #dashboard-widgets h4, #dashboard_quick_press .drafts h2 {/*\n*/    margin: 0 12px 8px;/*\n*/    padding: 0;/*\n*/    font-size: 14px;/*\n*/    font-weight: 400;/*\n*/    color: #c4c7ca;/*\n*/}#future-posts ul span, #published-posts ul span {/*\n*/    display: inline-block;/*\n*/    margin-right: 5px;/*\n*/    min-width: 150px;/*\n*/    color: #d2d5d8;/*\n*/}#dashboard_quick_press .drafts li time, #title-wrap #title-prompt-text, .textarea-wrap #content-prompt-text {/*\n*/    color: #b2c0ce;/*\n*/}#dashboard_right_now .page-count a:before, #dashboard_right_now .page-count span:before {/*\n*/    /*\n*/    filter: brightness(1.3);/*\n*/}#dashboard_right_now .post-count a:before, #dashboard_right_now .post-count span:before {/*\n*/    /*\n*/    filter: brightness(1.3);/*\n*/}#menu-management .menu-edit, #menu-settings-column .accordion-container, .comment-ays, .feature-filter, .imgedit-group, .manage-menus, .menu-item-handle, .popular-tags, .stuffbox, .widget-inside, .widget-top, .widgets-holder-wrap, .wp-editor-container, p.popular-tags, table.widefat {/*\n*/    border: 1px solid #333333  !important ;/*\n*/   /*\n*/}.postbox {/*\n*/    min-width: 255px;/*\n*/    border: 1px solid #565656;/*\n*/    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    background: #565656;/*\n*/}#major-publishing-actions {/*\n*/    padding: 10px;/*\n*/    clear: both;/*\n*/    border-top: 1px solid #565656;/*\n*/    background: #464646;/*\n*/}.postbox .hndle, .stuffbox .hndle {/*\n*/    border-bottom: 1px solid #888;/*\n*/    -webkit-user-select: none;/*\n*/    -moz-user-select: none;/*\n*/    -ms-user-select: none;/*\n*/    user-select: none;/*\n*/}#wp-content-editor-tools {/*\n*/    background-color: #565656;/*\n*/    padding-top: 20px;/*\n*/}.wp-editor-expand #wp-content-editor-tools {/*\n*/    z-index: 1000;/*\n*/    border-bottom: 1px solid #888888;/*\n*/}#post-status-info {/*\n*/    width: 100%;/*\n*/    border-spacing: 0;/*\n*/    border: 1px solid #888888;/*\n*/    border-top: none;/*\n*/    background-color: #888888;/*\n*/    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    z-index: 999;/*\n*/}.categorydiv div.tabs-panel, .customlinkdiv div.tabs-panel, .posttypediv div.tabs-panel, .taxonomydiv div.tabs-panel, .wp-tab-panel {/*\n*/    min-height: 42px;/*\n*/    max-height: 200px;/*\n*/    overflow: auto;/*\n*/    padding: 0 .9em;/*\n*/    border: 1px solid #696969;/*\n*/    background-color: #696969;/*\n*/}.wp-tab-active, ul.add-menu-item-tabs li.tabs, ul.category-tabs li.tabs {/*\n*/    border: 1px solid #888;/*\n*/    border-bottom-color: #696969;/*\n*/    background-color: #888888;/*\n*/}.howto {/*\n*/    color: #d8d8d8;/*\n*/    font-style: italic;/*\n*/    display: block;/*\n*/}.tagcloud-link.button-link {/*\n*/    color: #11c7f3;/*\n*/    text-decoration: underline;/*\n*/}#post-body ul.add-menu-item-tabs li.tabs a, #post-body ul.category-tabs li.tabs a, #side-sortables .add-menu-item-tabs .tabs a, #side-sortables .category-tabs .tabs a, .wp-tab-bar .wp-tab-active a {/*\n*/    color: #ffffff;/*\n*/}#comment-link-box, #edit-slug-box {/*\n*/    line-height: 24px;/*\n*/    min-height: 25px;/*\n*/    margin-top: 5px;/*\n*/    padding: 0 10px;/*\n*/    color: #c5c5c5;/*\n*/} .plugins tr {/*\n*/    background: #565656;/*\n*/}.notice-warning.notice-alt {/*\n*/    background-color: #6d5c2d;/*\n*/}.notice, div.error, div.updated {/*\n*/    background: #717171;/*\n*/    border-left: 4px solid #ffce1a;/*\n*/    -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);/*\n*/    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);/*\n*/    margin: 5px 15px 2px;/*\n*/    padding: 1px 12px;/*\n*/}.plugins .active td, .plugins .active th {/*\n*/    background-color: #404040;/*\n*/}.widefat td, .widefat th {/*\n*/    color: #ffffff;/*\n*/} .form-table th, .form-wrap label {/*\n*/    color: #c8d3de;/*\n*/    font-weight: 400;/*\n*/    text-shadow: none;/*\n*/    vertical-align: baseline;/*\n*/}.form-wrap p, p.description {/*\n*/    margin: 2px 0 5px;/*\n*/    color: #bbb;/*\n*/}input[type=text], input[type=search], input[type=radio], input[type=tel], input[type=time], input[type=url], input[type=week], input[type=password], input[type=checkbox], input[type=color], input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=month], input[type=number], select, textarea {/*\n*/   /*\n*/    background-color: #dadada; /*\n*/}body #titlediv #title {/*\n*/    /*\n*/    background-color: #dadada;/*\n*/}body div.mce-panel {/*\n*/    border: 0;/*\n*/    background: #828282;/*\n*/}.manage-menus , .accordion-section-content { /*\n*/    background: #565656;/*\n*/}.nav-menus-php #post-body {/*\n*/     border-top: 1px solid #888;/*\n*/    border-bottom: 1px solid #888;/*\n*/    background: #565656;/*\n*/} .js .control-section .accordion-section-title:focus, .js .control-section .accordion-section-title:hover, .js .control-section.open .accordion-section-title, .js .control-section:hover .accordion-section-title {/*\n*/    color: #ffffff;/*\n*/    background: #888888;/*\n*/}.control-section.open .accordion-section-title {/*\n*/    border-bottom: 1px solid #888;/*\n*/}.control-section .accordion-section-title, .customize-pane-child .accordion-section-title { /*\n*/    background: #1f1f1f;/*\n*/}.accordion-section {/*\n*/    border-bottom: 1px solid #565656;/*\n*/ }.menu-item-handle, .widget .widget-top {/*\n*/    background: #333333;/*\n*/    color: #e6e6e6;/*\n*/}.item-type {/*\n*/    display: inline-block;/*\n*/    padding: 12px 16px;/*\n*/    color: #b9b9b9;/*\n*/    font-size: 12px;/*\n*/    line-height: 18px;/*\n*/}.menu-item-settings {/*\n*/    display: block;/*\n*/    width: 402px;/*\n*/    padding: 10px 0 10px 10px;/*\n*/    position: relative;/*\n*/    z-index: 10;/*\n*/    border: 1px solid #888888;/*\n*/    border-top: none;/*\n*/    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/    box-shadow: 0 1px 1px rgba(0,0,0,.04);/*\n*/}#cancel-save, .item-controls a:hover {/*\n*/     filter: invert(1);/*\n*/}.is-submenu {/*\n*/    color: #aab2bb; /*\n*/}.menu-item-settings .field-move .button-link {/*\n*/    /*\n*/    color: #6ec4ec; /*\n*/}#nav-menu-header {/*\n*/    border-bottom: 1px solid #888;/*\n*/    margin-bottom: 0;/*\n*/}#menu-management { /*\n*/    background: #888888;/*\n*/} .widget-inside {/*\n*/    background: #696969;/*\n*/}#available-widgets .widget-description, #widgets-right a.widget-control-edit, .in-widget-title {/*\n*/    color: #bdbdbd;/*\n*/}.inactive-sidebar .description, .widget-holder .description {/*\n*/    color: #cbd2da;/*\n*/}.widgets-holder-wrap .description {/*\n*/    padding: 0 0 15px;/*\n*/    margin: 0;/*\n*/    font-style: normal;/*\n*/    color: #d2d6da;/*\n*/}.widefat thead td, .widefat thead th {/*\n*/    border-bottom: 1px solid #888888;/*\n*/}.widefat tfoot td, .widefat tfoot th {/*\n*/    border-top: 1px solid #888888;/*\n*/    border-bottom: none;/*\n*/} #wp-admin-bar-wp-logo{display:none;} i.mce-i-aligncenter, i.mce-i-alignjustify, i.mce-i-alignleft, i.mce-i-alignright, i.mce-i-backcolor, i.mce-i-blockquote, i.mce-i-bold, i.mce-i-bullist, i.mce-i-charmap, i.mce-i-dashicon, i.mce-i-dfw, i.mce-i-forecolor, i.mce-i-fullscreen, i.mce-i-help, i.mce-i-hr, i.mce-i-indent, i.mce-i-italic, i.mce-i-link, i.mce-i-ltr, i.mce-i-numlist, i.mce-i-outdent, i.mce-i-pastetext, i.mce-i-pasteword, i.mce-i-redo, i.mce-i-remove, i.mce-i-removeformat, i.mce-i-spellchecker, i.mce-i-strikethrough, i.mce-i-underline, i.mce-i-undo, i.mce-i-unlink, i.mce-i-wp-media-library, i.mce-i-wp_adv, i.mce-i-wp_code, i.mce-i-wp_fullscreen, i.mce-i-wp_help, i.mce-i-wp_more, i.mce-i-wp_page {   font-family: dashicons  !important ;     filter: contrast(1.9);} #wpadminbar .ab-icon, #wpadminbar .ab-item:before, #wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon {     font-family: dashicons  !important ; }    ';

document.getElementsByTagName('head')[0].appendChild(style);