Skip to content

add new title for asus router firmware#27

Merged
jcsteh merged 17 commits intojcsteh:masterfrom
derekriemer:master
Apr 25, 2024
Merged

add new title for asus router firmware#27
jcsteh merged 17 commits intojcsteh:masterfrom
derekriemer:master

Conversation

@derekriemer
Copy link
Copy Markdown
Contributor

  • add new fixes for asus router firmware.
  • update skeleton with function to update a live region temporarily.

derek riemer added 2 commits March 10, 2024 09:56
* fixes up nav menus.
* makes some toggles labeled.
* makes tutor help offered in settings pannels accessible.
Copy link
Copy Markdown
Owner

@jcsteh jcsteh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jcsteh
Copy link
Copy Markdown
Owner

jcsteh commented Mar 11, 2024

Oh, please also rename this to AsusRouterA11yFixes.user.js.

Copy link
Copy Markdown
Owner

@jcsteh jcsteh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks great barring some nits... but uh, where did the actual Asus Router script go? It seems to have been removed.

* @param {string} id the name of the new live region. This is an html id.
* @return {!Promise<HTMLElement>} a div that contains the live region. This can typically be ignored, this exxists to aid in chaining creation of non-existant regions.
*/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

// annimation frames, so delay 134 ms to be safe.
setTimeout(() => {
resolve(region);
}, 134);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity, why 134 (as opposed to 130 or similar)? Is 134 significant somehow?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1000/30 (frames per second) is 3.333... * 3 is 333 ...4 when rounded. Ballpark math tbh.

});

/** add your specific initialization here, so that if you ever update the framework from new skeleton your inits are not overridden. */
function userInit(){}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea, but I'd move it down below the /*** Define the actual tweaks. ***/ comment so it's easier to paste in the new skeleton without breaking your stuff.

@derekriemer
Copy link
Copy Markdown
Contributor Author

I can't figure out how to reply to your comment. uh ... so yeah what happened is ... I am used to using a heavily modified murcurial at work. I renamed the file and my ide at work is smart enough to rename (git mv basically) the file, so when I renamed the file in my editor, it got untracked and the new one never got re-tracked. Silly error really. This should be better.

@derekriemer
Copy link
Copy Markdown
Contributor Author

This is ready for more review. I don't understand how this review thing works on github. How do I send it back to you for another go round????

Copy link
Copy Markdown
Owner

@jcsteh jcsteh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly there.

return updatePromise;
}

/**
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um... I think this comments out a huge block of code below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just the dangling start of a sad comment that was 99% deleted. I've gone back in and eliminated the rest of it. :-)

@derekriemer
Copy link
Copy Markdown
Contributor Author

I'm done again.

Copy link
Copy Markdown
Owner

@jcsteh jcsteh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your perseverance.

const DYNAMIC_TWEAKS = [
];

/** add your specific initialization here, so that if you ever update the framework from new skeleton your inits are not overridden. */
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** add your specific initialization here, so that if you ever update the framework from new skeleton your inits are not overridden. */
/** Add your specific initialization here, so that if you ever update the framework from new skeleton your inits are not overridden. */

@jcsteh jcsteh merged commit 9e8830f into jcsteh:master Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants