Poe enlarge chat box, auto set focus to input box and toggles (show/hide) the left sidebar

1. Enlarges the chat box. 2. Automatically moves the focus to the chat input box when the user types. 3. Sets the chatInput as the focus when the page is focused.

< Poe enlarge chat box, auto set focus to input box and toggles (show/hide) the left sidebarについてのフィードバック

レート:良 – スクリプトは良好に動作する

FFW
§
投稿日: 2023/05/27

I was thinking of creating a user script that toggles (show/hide) the left sidebar via "GM.registerMenuCommand". Basically creating a user script of my current css style for poe.com

aside {
    display: none;
}

.Message_botMessageBubble__CPGMI  {
    max-width: unset !important;
}

.NewPageWithSidebarLayout_mainSection__CDsEp {
    max-width: unset !important;
}

div[class*="WithSidebarLayout_mainSection"] {
    max-width: unset !important;
}

Then I came across your user script yesterday and I liked the "auto set focus" part.

Would you consider implementing "toggles (show/hide) the left sidebar" into your script?

if not, would you be okay if I implement your "auto set focus" part into my script that I would create?

Thank you.

Vi Clair作者
§
投稿日: 2023/05/29

Good idea! I will consider adding the function to toggle (show/hide) the left sidebar to this script, but I don't want to add any elements to Poe's source page. Instead, maybe I will create several buttons in TamperMonkey that users can use to switch any functions on or off as they please.

By the way, please feel free to create a pull request in this project (https://github.com/hxy91819/poe-tampermonkey). Thank you!

Vi Clair作者
§
投稿日: 2023/05/29

I was thinking of creating a user script that toggles (show/hide) the left sidebar via "GM.registerMenuCommand". Basically creating a user script of my current css style for poe.com

aside {
    display: none;
}

.Message_botMessageBubble__CPGMI  {
    max-width: unset !important;
}

.NewPageWithSidebarLayout_mainSection__CDsEp {
    max-width: unset !important;
}

div[class*="WithSidebarLayout_mainSection"] {
    max-width: unset !important;
}

Then I came across your user script yesterday and I liked the "auto set focus" part.

Would you consider implementing "toggles (show/hide) the left sidebar" into your script?

if not, would you be okay if I implement your "auto set focus" part into my script that I would create?

Thank you.

The feature is now complete. You can activate this feature through the TamperMonkey extension menu. The sidebar is shown by default.

FFW
§
投稿日: 2023/05/29

The feature is now complete. You can activate this feature through the TamperMonkey extension menu. The sidebar is shown by default.

Awesome. Just tested the new version on Violentmonkey and works perfectly.

Thank you for taking the time and effort to add this feature.

返信を投稿

返信を投稿するにはログインしてください。