Giter Club home page Giter Club logo

hanzisize's People

Contributors

rjpeterson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hanzisize's Issues

Auto-increment version numbering

Manually changing version numbers in package.json as well as in manifest.json is annoying and error-prone. I would like it to be automated to increment on every "git push"

DOM scanning is too slow

  • find and remove unnecessary async calls
  • reorganize function calling to optimize speed
  • implement html element indexing so 2nd, 3rd, 4th resizings are faster
  • scan dom on popup and language change, tag elements to change, change on newfontsize (removes repeated regex)

Upgrade to manifest v3

Chrome extension manifest v3 won't allow loading external scripts. Basically the same problem as the Firefox webstore version.

Cleanup code in background script

The background script that enables resizing via hotkey is currently just copy-pasted code from other parts of the extension with unneeded parts commented out. It should be cleaned up and unneeded code removed.

Create Github Pages documentation site

Currently the only "website" for Hanzisize is the Chrome and Firefox webstores. So, we should create a basic Github Pages website to provide new users information on how to use the extension, new features & releases, etc. This also will help with promotion of the extension.

Add font change feature

suggestion from reddit:
'Sounds awesome! I cant look at it now but is there a possibility of forcing a specific font for the Chinese characters as well? I love Kai Ti (I think its called or something close to that)'

Using extension on google search results gives error

Error content: Unchecked runtime.lastError: This page cannot be scripted due to an ExtensionsSettings policy.

Can be solved by checking "Allow access to search page results" in extension settings.
This needs to be communicated through the popup notification div.

Text that is preceded by a link within a span does not change size

In the following code, text inside the tag gets resized while the text between and does not.

<span><a class="notranslate text-elem English-elem" href="/steapd_tea/" tabindex="0" style="--data-original-font-size:14px; font-size: 21px !important; line-height: normal !important;">@steapd_tea</a> hmm that's fascinating! 🙏might have to try some now😁</span>

Hebrew regex incomplete

From /r/hebrew

זײַט אַזוי גוט קאָריגיר מיך
etalasi
2 minutes ago
I don't have a Github account to report an issue, but your regex expression for the Hebrew script in line 19 of contentScript.js covers only the Unicode block named "Hebrew" from U-0590 to U-05FF
ְֱֲֳִֵֶַָֹֺֻּֽ֑֖֛֢֣֤֥֦֧֪֚֭֮֒֓֔֕֗֘֙֜֝֞֟֠֡֨֩֫֬֯־ֿ׀ׁׂ׃ׅׄ׆ׇאבגדהוזחטיךכלםמןנסעףפץצקרשתׯװױײ׳״
and doesn't include the Hebrew letters in Alphabetic Presentation Forms (PDF) from U-FB1D to U-FB4F.
יִﬞײַﬠﬡﬢﬣﬤﬥﬦﬧﬨ﬩שׁשׂשּׁשּׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּשּתּוֹבֿכֿפֿﭏ
I generated the strings of characters from each Unicode block with https://r12a.github.io/uniview, in case that helps you for testing.

Merge Chinese & Japanese functions

(or at least make them do the same thing with separate selectbox entries)

Resizing Japanese skips over any element nodes that are only Kanji with no katakana or hiragana. This is bad because Kanji are the most complex and the most necessary to resize.

Needs visual overhaul

Update colors, simplify interface using slider for font size, change "more info" button, left/right arrow or typing for language changing, maybe hide language most of the time?

Popup should initialize to default interface, then change if error

Current popup function is to initialize to "loading..." and then load interface after response is received from injected content script.

This works OK but results in significant delay when content script injects slowly like on Edge browser.

Instead, we should load basic interface first and allow user to input values immediately even if content script is not injected yet.
If script injects successfully, send content object. If not, display error.

Add more languages

  • Hangul (Korean)
  • Thai
  • Arabic
  • Hebrew
  • Hindi
  • Latin-based(relabel English)
  • Georgian
  • Burmese

Firefox webstore issue

Firefox extensions aren't allowed to contain remote scripts.
create-react-app build process uses workbox to create a service worker and injects a remote script in the process

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.