Skip to content

Releases: ka-extension/ka-extension-ts

v4.9.3

23 Jul 00:01
d24af7b
Compare
Choose a tag to compare

What's Changed

  • Rebranded to the "Extension for Khan Academy"
  • Fix localStorage saves being written to tutorial project by @HSstudent16 in #267
  • Automatically switch to tips and thanks instead of questions by @ElectricDolphin in #269

New Contributors

Full Changelog: v4.9.2...v4.9.3

v4.9.2

02 May 05:53
Compare
Choose a tag to compare

To install the extension on any Chromium-based browser:

  1. Download the ka-extension-4.9.2.zip file
  2. Open the "Extensions" page at chrome://extensions, edge://extensions, etc.
  3. Enable "Developer Mode"
  4. Drag the file anywhere on the page

v4.7.7

23 Apr 05:21
Compare
Choose a tag to compare
And:
 - changelogs for older versions
 - add An0n3m0us as a contributor
 - update the `npm run release` command to call `build-prod`

v4.7.2

06 Dec 20:21
Compare
Choose a tag to compare
  • Removes checking if your program is "Completely" hidden, to fix an issue where viewing programs hidden from the hotlist would log you out.

v4.7.1

06 Dec 20:22
Compare
Choose a tag to compare
  • Fixes a bug that caused voting to fail.
  • Fixes the background color of the Editor Setting button in some browsers.

v.4.7.0

02 Sep 22:58
4546867
Compare
Choose a tag to compare
  • Add syntax highlighting to code blocks in comments

  • Move hide editor to the Editor Settings menu

  • Make the comment reply box not tiny

  • Add a "Projects" button to the left sidebar on profiles

  • Add a check on your profile to let you know if you're banned

  • Fix a KA bug where the Edit Profile button would clip down

  • Moves Toggle Editor Settings button before Oh Noes, to avoid Oh Noes clipping as he changes width

  • Sort selecting elements on the browse projects page are blue again

  • Hidden program check on the 404 page works again

  • Fixes bugs associated with switching to the T&T tab

  • Removes code for a couple of broken features that aren't worth fixing: profile hover cards under programs, toggle documentation keyboard shortcut, discussion guidelines next to the discussion area, and duplicating badges

4.6.3

31 May 00:17
74a6c27
Compare
Choose a tag to compare
Fix class hashes (#179)

* Start fixing class hashes

-Removes BUTTON_CLASSES, used for storing the old class names. We're trying to move away from these because they are unstable.
-Add a "kae-program-button" class to the Copy Link and vote buttons, which is currently unused.
-Get program buttons by `a[role="button"]`
-Move styles for all extension custom buttons into general.css (instead of trying to set a class that KA will match)
-Update the class used to find and place the Editor Settings Toggle button,
-Refactor the Editor Settings Toggle button so that if that class changes, stored settings will still be applied.

* Grab buttons in TS and add a class

Instead of trying to do trash CSS selectors that didn't even work, I grabbed the program buttons in TypeScript and added the ".kae-program-button" class to them. Simplifies the CSS accordingly.

* Refactor buttons

Refactor buttons.ts to export one function, which is responsible for finding the buttons wrap and calling other modifications.

* Update programdata

Tie to the user link instead of the updated class. Confirmed to work even with child account programs. Unconfirmed with anonymous programs.
Also adds the table a sibling to the program buttons and user info, instead of as a child of the updated element or one higher than whereever it was.
Fixes a bug with the toggle editor settings button where it thought it was an anchor but was previously updated to a button.

* Move flag button code into buttons.ts

Move flag button code into buttons.ts, fixing it at the same time to run off the same querySelectorPromise as the other button events.
Removes the flag file!

* Remove old button css

* Move report button from report.ts to buttons.ts

Moved it onto the same querySelectorPromise as everything else!

* Update discussion page check and program button spacing

* Fix lint errors

* Add some discussion buttons listeners

Find all discussion tab buttons (Questions, T&T, Help Requests), and add event listeners to them to trigger looking for new comments.
Find the Load More Comments button and attach a listener to that.

* Add check for replies button & refactor

-Add an event listener to the show replies button
-Move code that handles top-level comments into a specific check
-Add the number of flags to a comment even if there are no flags (makes it clear when the Exension's checking flags)
-Add a bunch of comments

* Refactor load more comments button listener

-We assume that there is at least 1 unalteredComments, because the querySelector fired, and then assume it has a 4 times removed parent (reasonable, if even if we find the wrong element, given the depth of KA's DOM tree). We then grab the last of it's children. If that's a button, we add an event listener, otherwise we exit silently.
-Increase time we search for new comments from 1sec to 2sec, I had it fail loading questions once, and I've cut down on the number times where it shouldn't find comments.

* Listener for answers

-Add an event listener for the button to show answers to questions
-Update error handling to ignore the promise rejection error and still console.error other, legitimate, errors

* Fix lint errors

* 4.6.3

-Remove debug code
-Increase comment searching timer (2s -> 4s)
-Changelog and version bumps to 4.6.3

4.4.0

13 Dec 05:26
fff25c4
Compare
Choose a tag to compare
v4.4.0

4.4.0 (#143)

4.3.0

28 Nov 19:40
fff25c4
Compare
Choose a tag to compare
v4.3.0

4.4.0 (#143)

KA Extension 4.2.0

15 Nov 17:05
c831218
Compare
Choose a tag to compare
  • Copy link button on program pages copies a shortened link to the program
  • You can now tell if your program has been hidden from the hotlist, from everywhere, or is guardian approved from the program stats section
  • Program titles are now centred in the middle of the page
  • Program page is now themed blue, like the rest of KA's ui
  • Hovercards have now been added back to project pages