Skip to content

Instantly share code, notes, and snippets.

@fredgido
Last active June 13, 2020 22:33
Show Gist options
  • Save fredgido/22c3db12c7c2aa6353032e7ffe18c7cf to your computer and use it in GitHub Desktop.
Save fredgido/22c3db12c7c2aa6353032e7ffe18c7cf to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name ILUI
// @namespace I Love UI
// @version 0.111
// @description none
// @author made by fredgy-kun
// @match https://*.donmai.us/posts/*
// @updateURL https://gist.github.com/fredgido/22c3db12c7c2aa6353032e7ffe18c7cf/raw/ILUI.user.js
// @downloadURL https://gist.github.com/fredgido/22c3db12c7c2aa6353032e7ffe18c7cf/raw/ILUI.user.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
$("#post-sections li a,#side-edit-link").click()
Danbooru.Post.open_edit_dialog()
document.getElementById('show-related-tags-link').click()
document.documentElement.scrollTop = 0;
document.querySelectorAll('[aria-describedby="edit-dialog"]')[0].style.width = "900px";
document.querySelectorAll('[aria-describedby="edit-dialog"]')[0].style.top = "0px"; // 85
document.querySelectorAll('[aria-describedby="edit-dialog"]')[0].style.left = "1000px";
document.querySelector("#post_tag_string").style.height = "180px"
document.querySelector("#related-tags-container > div").style.padding = "0 0 0 0"
document.getElementsByClassName("input").forEach(k => {
k.style.marginBottom = 0;
})
//document.querySelector("#content > section.image-container.note-container.blacklisted").style.overflow = "scroll";
//document.querySelector("#content > section.image-container.note-container.blacklisted").style.width = "840px";
//document.querySelector("#content > section.image-container.note-container.blacklisted > img").className = "";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment