-
-
Save hinaloe/12c67d011c5c43ca5b29810a41c0f68c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name maud force single | |
// @namespace https://us.hinaloe.net/ | |
// @version 0.1 | |
// @description Force disable advanced mode | |
// @author Hina | |
// @match https://mstdn.maud.io/web/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const el = document.getElementById('initial-state') | |
if(el) { | |
const initialState = JSON.parse(el.textContent) | |
initialState.meta.advanced_layout = false | |
el.textContent = JSON.stringify(initialState) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment