您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It change Mildom's layout.(ミルダムのレイアウトを変えます)
当前为
// ==UserScript== // @name Mildom layout deformer // @namespace Mildom layout deformer // @version 0.4 // @description It change Mildom's layout.(ミルダムのレイアウトを変えます) // @author meguru // @match https://www.mildom.com/* // @grant none // ==/UserScript== (function() { 'use strict'; setTimeout(function() { console.log('-------- start tamper ------------'); const playerArea = document.getElementsByClassName('room__body')[0]; if (!playerArea) { console.log("not found playerArea"); return; } playerArea.style.flexDirection = 'column'; const player = document.getElementsByClassName('room__player-container')[0]; if (!player) { console.log("not found player"); return; } playerArea.appendChild(player); const myRows = document.createElement('div'); myRows.style.flexDirection = 'row'; myRows.style.display = 'flex'; myRows.style.overflow = 'scroll'; playerArea.appendChild(myRows); const chat = document.getElementsByClassName('room__chat')[0]; if (!chat) { console.log("not found chat"); return; } myRows.appendChild(chat); const myColumns = document.createElement('div'); myColumns.style.flexDirection = 'column'; myColumns.style.display = 'flex'; myRows.appendChild(myColumns); const anchor = document.getElementsByClassName('room-anchor-panel')[0]; if (!anchor) { console.log("not found anchor"); return; } myColumns.appendChild(anchor); const gift = document.getElementsByClassName('gift-panel')[0]; if (!gift) { console.log("not found gift") return; } myColumns.appendChild(gift); const relative = document.getElementsByClassName('room-relative')[0]; if (!relative) { console.log("not found relative") return; } myColumns.appendChild(relative); console.log('--------- end tamper -------------'); }, 3000); })();