Greasy Fork

Greasy Fork is available in English.

Mega.nz Dark Reader Grid

Fixes the grid that is produced by dark reader extension

当前为 2021-04-13 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Mega.nz Dark Reader Grid
// @namespace    http://greasyfork.icu/en/users/689482-quin15
// @version      0.1
// @description  Fixes the grid that is produced by dark reader extension
// @author       Quin15
// @match        https://mega.nz/*
// @grant        none
// ==/UserScript==

var styles = `.files-grid-view.fm .grid-scrolling-table, .files-grid-view.fm .grid-table, .files-grid-view.fm .grid-scrolling-table .jspPane, .transfer-scrolling-table, .transfer-scrolling-table .jspPane {
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Слой_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='1px' height='48px' viewBox='-305 373 1 48' enable-background='new -305 373 1 48' xml:space='preserve'%3E%3Ctitle%3EUntitled%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cpath id='Fill-50' sketch:type='MSShapeGroup' fill='%23181a1b' enable-background='new ' d='M-305,397h1v24h-1V397z'/%3E%3Cpath id='Fill-50_1_' sketch:type='MSShapeGroup' fill='%23212121' d='M-305,373h1v24h-1V373z'/%3E%3C/svg%3E") !important;
}`
var styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheet.innerText = styles;
document.head.appendChild(styleSheet);