Forum customization
-
It's been updated
-
@luetage That's not a bad idea.
What sort of help did you mean? My extension-creating knowledge so far is just limited to the simple kind that applies JS and CSS in hard-coded files as described in the thread's first post. I don't yet have any experience with making extension option pages, but the documentation looks like it's fairly reasonable stuff -- you make a page with checkboxes or whatever and have some calls to load/save it using chrome.storage.sync.get and chrome.storage.sync.set. (see also https://developer.chrome.com/extensions/storage )
-
@Isildur I haven't started yet, so I don't know. But the general plan is to create an options page accessible from the existing menu, or the profile page, and then just make checkboxes for the setup and provide detailed explanations what each item does.
I imagine the hard part will be to make it all compatible, so you don't have combinations of a theme and mods which don't fit (style), have features which cancel each other out, or are repetitive.
-
If you make an extension options page, I guess you could (in addition to presumably making it accessible either via clicking the extension's button or a dropdown from the button), make it accessible via a link from the forum's #user-control-list UL, by injecting a
<li> <a id="launch-extension-options" href="#">Extension settings</a></li>
, and then have an onclick listener in the content script call "chrome.runtime.openOptionsPage()". I think it would need to be a bit indirect, though;chrome.runtime.openOptionsPage()
isn't mentioned in this this limited list of things that are allowed from that script context, so I think you might have to send a message through chrome.runtime.sendMessage() and have an event listener in the extension's background page callchrome.runtime.openOptionsPage()
.As for conflicts, I figure people could try out which ones work well together, and uncheck some of the checkboxes if they don't.
-
I'm pretty much finished with the Forum extension. If anyone wants to test it, please send me a message.
What the extension is lacking is more themes, especially a dark one. The more people get involved the better, I would like this to be a community effort.