Giter Club home page Giter Club logo

ehunter's Introduction

中文版

eHunter

Provide a scroll mode and book mode, for a better reading experience.

Preview

avatar

avatar

avatar

Use in iPad

You can follow the guide to use eHunter in iPad: CN: Link EN: Link

Implementation

It creates a new element in the Eh page, and inject Vue components to provide a scroll mode and book mode.

Install

Tampermonkey: openuserjs Chrome: coming soon Firefox: Coming soon

You also can get it from the 'release' of this project.

Run

  1. In a Node environment, run npm install, and npm run dev, then you will in dev mode.
  2. In the top of chrome://extensions, open the develop mode, and select the /dist.
  3. Run npm run publish to package a zip file in /publish_output for the web store of Chrome and Firefox.
  4. Tampermonkey: run npm run build, and the /dist/inject.js is target, just use it.
  5. Run npm run test to test.

Structure

|-eHunter
  |-build
    |-gulpfile.js // gulp file for packaging
    |-webpack.dev.conf.js // webpack file for dev
    |-webpack.prod.conf.js // webpack file for prod
  |-dist // the directory of release 
  |-src
    |-assets // resources
      |-img // images
      |-value
        |-String.js // for i18n
        |-tags.js // tags
        |-version.js // the informations of update in this version
    |-bean // bean classes
    |-components // Vue components
      |-widget // button, pagination, switch etc..
        |-AlbumBookView.vue // the component of book mode
        |-AlbumScrollView.vue // the component of scorll mode
        |-ModalManager.vue // manage dialogs
        |-PageView.vue // the component of page, loading in AlbumBookView and AlbumScrollView
        |-ReaderView.vue // the component of reader,including of AlbumBookView, AlbumScrollView,ThumbScrollview and TopBar
        |-ThumbScrollview.vue // the component of thumbnail column
        |-TopBar.vue // top bar
    |-service
      |-parser // the parseres of Eh pages
      |-request // the request classes.
      |-storage
        |-Base
          |-Stroage.js // extend from react-native-storage, supporting chrome.storage.
        |-AlbumCacheService.js // cache the urls of images, the size of images.
        |-LocalStorage.js // wrap Storage.js,basing on the window.localStorage
        |-SyncStorage.js //  wrap Storage.js,basing on the chrome.storage.sync. It can sync the datas with Cloud of Google.
      |-api.js // the api of Eh
      |-InfoService.js // show the dialog of instructions, the dialog of update, etc..
      |-SettingServie.js // save settings and get 
      |-PlatformService.js // some apis, for cross platfroms
      |-StringService.js // provide strings of i18n
    |-store // Vuex
    |-style // the variables of sass, and the style of Markdown
    |-utils
        |-bezier-easing.js // using Cubic Bezier in the scroll of scroll mode
        |-MdRenderer.js // the renderer of Markdown
        |-VueUtil.js // add some frequently-used functions in Vue
    |-app.inject.vue // the main components of Vue
    |-app.popup.vue // the main components of Vue in popup window
    |-main.inject.js // the entry of webpeck and some earlier stage processing before injecting view of Vue.
    |-main.popup.js // the entry of webpeck. in popup window.
    |-config.js // version and update server
    |-mainifest.json // the mainifest for chrome and firefox extension

ehunter's People

Contributors

hanfengsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ehunter's Issues

【功能建议】希望可以增加保存图片的功能

希望可以增加下载原图的功能在浏览时,不然还得退出,再去点比较麻烦,还有希望可以增加下对书页模式下,同时显示两张图的保存为一张,这样可以不用另存为后自己再去合并。支持作者

black screen

hi thank you for this awesome script but i got problem is that sometimes i get black screen but not on all images just a few of them, the images are working well because when i click on that image it load perfectly but wont load all images well just like 4-5 images after that black screen i tried to lick reload image but no luck

实际图片与缩略页数不符合

环境:
Windows10 x64
Chrome 65.0.3325.181
Chrome Web store Ver 2.2.0 or Tampermonkey Ver 2.2.0

现象:
打开极个别页面时,实际图片与缩略页数不符合
(如:https://ex恒泰.org/g/1203036/56ae7cda9d/
左边缩略图一切正常,而右边的页面,选择缩略图第一张时,页面是从201开始。
然而该页面在另外一台电脑上,使用ehunter一切正常。目前百思不得其解中。清过一遍浏览器缓存,还是这样
图如下
Imgur

Chrome Support?

In tieba.baidu.com you say that this is a chrome plugin but there is only Firefox version in release tag.

【缺陷报告】书页模式 同屏页数1页时 不能翻上一页

首先感谢2.4.0更新,新增了很多功能,特别是鼠标点击翻页,令我对这个插件更加爱不释手了:satisfied:
在这里我想提一个小建议,请多指教。
书页模式鼠标点击翻页的逻辑是:点击最左页翻上页,点击最右页翻下页。但是当同屏页数设置成1页时,就没有最左页和最右页之分,此时点击该页会翻下页,不能翻上页。

我觉得更好的方法是:当同屏页数设置成1页时,逻辑变换成,点击左半页翻上页,点击右半页翻下页。或者,点击该页翻下页,点击左边的空白处翻上页。这样是否更加方便实用呢?

谢谢你的关注:blush:

Suggestion for Surface/Tablets.

I have a Surface Book 2 and a feature I'd love to see is being able to use a touch screen with this program. One idea is to make clicking one side of the image flip to the next image and the other half flip to the previous image. I even have the Multi-page Viewer perk and I'd much rather use your app, especially if it allowed me to change pages while using my touch screen.

One other quick thing to mention, I do notice that on some big galleries it seems like the pages are out of order, or maybe don't start at the beginning of the gallery (page 2 in the program seems to be image 401 in this one gallery that has 441 images).

Thanks for all your hard work :)

TODO-LIST

  • 頂部添加"40% 80% 90%"三個快速調整圖片大小項.
  • 預覽欄添加可見滾動條.
  • 預覽欄添加一鍵關閉按鈕, 以及開啟按鈕.
  • 分頁模式設計, 應對大規模畫廊.
  • 增加類書籍翻頁閱讀模式.
  • Storage部分重構, fork react-native-storage庫, 實現chrome.storage版本. 完成后, 講畫廊數據緩存隊列化.
  • 添加空格跳頁. (无必要)
  • 多語言化
  • 重新設計加載提示以及重加載
  • 通過修改Fetch的請求頭, 去除強制small預覽問題
  • 訂閱更新後台進程智能判斷是否需要開啟. (直接不要后台进程)
  • Material Design & page review
  • Download images

Risk of ban?

there is a risk of ban from exhentai/ehentai forum for using the extension or is safe?

关于单张图片刷新问题

首先感谢作者
一个小问题,使用拓展的时候常碰到某些图片不显示要刷新的问题,然而刷新按钮设置的地方不太方便,建议放在**且大图标显示。

【功能调整建议】图片大小显示的情况

在滚动模式下,如果原图比较小,则它会被放大到适应浏览器的宽度;书页模式下图片会同时适应宽度跟高度,同样小图会变大。能否只让大图适应浏览器大小而小图不超过原图大小呢?分页模式下能否增加只适应宽度高度任意一项?(同样也是大图适应)

Support i18n?

Hello, this is nice extension. Can you add i18n? I can translate if you need

三个建议

一个是可以禁用打开时的滚动动画
第二是增加左右双开页模式,利用PC的大屏
第三是增加快速退出的按钮,而不用每次都去点开扩展图标关闭
一些油猴脚本可以实现以上部分功能,但总体使用体验都不是很好
感谢作者

eHunter stop responding in some gallery

image

Isuue

In one of the gallery the entire UI stops responding. You can click on them but nothing will happen, neither would there be any error message in the console.

Behavior

  • You can still roll up & down or click the github button.
  • Also, the gallery actually has 42 pages while the first page in eHunter is numbered as "43" and all of them are empty black images.
  • You can still turn on and turn off eHunter.

滚动模式下有时无法用键盘翻页

只有阅读器的元素获得键盘焦点时才能用方向键/PgUp,PgDown翻页,而且有的时候键盘焦点会自己消失,使得必须点一下图片才能继续翻页。

复现步骤:

  • 随便开一个本子,确保eHunter处于“滚动”模式
  • 用鼠标点一下图片
  • 按End,再按Home
  • 发现当前位于最后一页,说明Home键没有生效

虽然可以用鼠标滚轮翻页,但对于触摸板用户,键盘翻页有时候会更方便。

(与 #22 类似)

顶栏不能自动隐藏

设置隐藏后,每次进入都要手动再隐藏
小问题,望更新~
2.0很棒,再次感谢作者!

vue production mode

现在在商店发布的版本是development模式的,会在控制台提示装vue devtools。
是否切到production模式发布更好些?

[功能建议] 自动阅读

就是用户自定义一个速度(px/s)
然后滚动条顺着这个速度往下移动
这样子就可以双手离开键盘了
(:з)∠)
希望采纳

[功能建议]希望增加图像平滑功能

虽然现在的屏幕分辨率都很高了,但是我的垃圾笔记本还是1080p,遇上高分辨率的本子的时候,就会像下面这样出现很多十字纹,如图所示。
2345 20190214151428
所以希望能加入平滑算法,下面是在perfect viewer上面使用了lanczos3的效果
screenshot_2019-02-14-15-17-12 1 _
可以看到十字纹消失了,图像整体平滑了许多,希望ehunter也能加入类似的功能

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.