Skip to content

PrsPrsBK/PrsPrsTwitter

Repository files navigation

PrsPrsTwitter

What it does

  • Princess Princess Twitter. Do little thing.
  • Settings can enable/disable mute by 'u', or block by 'b'.
  • auto update check with interval.
  • Popup menu with head of each tweet list, and jump to 'near' for clicked one.

Excuse me, I can not react to situation such that...

  • twitter's web page changed it's design or behavior or so.
  • twitter run alpha-beta test on your account.

Also I can not understand and not do anything with ...

  • locale or region except Japanese
  • not Windows

How to build

For Firefox:

# cd root
$ web-ext build # => web-ext-artifacts/xxx.zip

For Google Chrome:

# cd root
$ ./Prepare-Chrome.ps1 # generate files in chrome/
$ cd chrome
$ web-ext build # => web-ext-artifacts/xxx.zip

Known Issue

  • Sometimes icon in location bar is disabled. - fixed at Firefox 64.

I had issued on bugzilla.mozilla.org, and seeing how it goes. 1493470 - pageAction icon goes hidden respond to a cross-site domain's movie inside iframe

  • I want to do 5 j as on Vim.

That is impossible, at least by WebExtensions own. twitter's javascript maybe checks whether each keyevent's isTrusted property. So, if this addon dispatches keydown event for j key from content script, it results in isTrusted as false and a event is ignored by twitter's javascript, and some post processes (to move forward selected tweet, or so) never be fired. For true, I guess that we need to have browser to fire keyevent, but WebExtensions API does not have such an ability.

License

MIT License