-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2.1.0 #76
Merged
Version 2.1.0 #76
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
UC...
channel IDs containing hyphens wrongly being prefixed with an @button
(closes Make the "reset" button a feature of type "button" #74)After updating, if the values were unchanged from their previous default, they will automatically have the new default value:
YTM only
, it changes toboth sites
10%
, it changes to4%
&t
param (closes&t
param in YT messes with video time restoration feature #85)toastDuration
config option not showing the example toast properlycompareVersions()
andcompareVersionArrays()
in favor of including thecompare-versions
librarycreateLongBtn()
to create a button with an icon and text (works either as normal or as a toggle button)The design follows that of the subscribe button on YTM's channel pages, but the consistent class names make it easy to style it differently.
showToast()
to show a custom toast notification with a message string or element and durationshowIconToast()
to show a custom toast notification with a message string or element, icon and durationcreateRipple()
to create a click ripple animation effect on a given elementExImDialog
class for creating a BytmDialog instance that is designed for exporting and importing generic data as a stringbrowseResponse
for pages like/channel/{id}
bytm:initPlugins
tobytm:registerPlugins
to be more consistentbytm:featureInitStarted
- emitted when the feature initialization process startsbytm:featureInitialized
- emitted every time a feature has been initialized and is passed the feature's identifier stringbytm:siteEvent:pathChanged
- emitted whenever the URL path (location.pathname
) changesbytm:siteEvent:fullscreenToggled
only once per fullscreen changeevent
property returned byregisterPlugin()
from nanoevents Emitter to NanoEmitter instance (seesrc/utils/NanoEmitter.ts
)In practice this changes nothing, but it benefits from plugins having access to the additional methods
once()
for immediately unsubscribing from an event after it was emitted once andunsubscribeAll()
to remove all event listeners.Postponed to v2.2 or v3.0: