Sleazy Fork is available in English.

Let's panda!

A login, view, download tool for exhentai

2020/07/13のページです。最新版はこちら。

コードが変更されたバージョンのみを表示しています。 すべてのバージョンを表示

  • v0.2.19 2024/08/27

    Issue with Page Refresh on Typing in Comment Text Box (#34)

    • Issue with Page Refresh on Typing in Comment Text Box

    Description

    When I add a new comment (by clicking [Post New Comment]), the page automatically refreshes after entering characters in the text box. After some investigation, it seems that this issue is caused by the script. This bug needs to be fixed.

    Problematic Code

    The current script sets up shortcut keys for navigation, but these shortcuts should not be triggered while typing in the text box. The code is as follows:

    document.addEventListener("keydown", async (e) => {
      // ignore key combinations
      if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey) {
        return;
      }
    
      var view_all = await GM.getValue("view_all", true);
    
      if (view_all === true) {
        return;
      }
    
      if (e.code === "ArrowLeft" || e.code === "KeyA") {
        e.preventDefault();
        childNodes[0].click();
      }
    
      if (e.code === "ArrowRight" || e.code === "KeyD") {
        e.preventDefault();
        childNodes[childNodes.length - 1].click();
      }
    });
    

    Suggested Fix

    To prevent this behavior, you should add a check to see if the current focus is on an input or textarea element. If so, the shortcut keys should not be triggered. Add the following code:

    // Check if the current focus is on an input or textarea element
    if (document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA") {
      return;
    }
    
    • Update version

    Update version

  • v0.2.18 2024/07/05

    Bump version to 0.2.18 for PR #31, #32, #33

  • v0.2.17 2024/07/05

    feat: allow use A, D, and arrow keys turn pages on view one mode (#33)

  • v0.2.17 2024/07/05

    feat: allow use W, S, and space keys to switch images (#32)

    Co-authored-by: Mino madness48596@gmail.com

  • v0.2.17 2024/07/05

    fix: arrow key combinations are wrong captured (#31)

  • v0.2.17 2023/10/27

    Fix gdo4 issue for exhentai update

  • v0.2.16 2023/07/02

    Bump version to 0.2.16 (#25)

  • v0.2.15 2023/07/02

    feat: allow page turning with arrow keys (#24)

  • v0.2.15 2023/06/11 Add threading limit for the viewer (#23) * Add threading limit for the viewer * Fix error handling for image load failure * Add backupUrl for download feature
  • v0.2.14 2023/05/07 allow user to use window height as image default (#21) * allow user to use window height as image default * Bump version to 0.2.14 --------- Co-authored-by: Mino <madness48596@gmail.com>
  • v0.2.13 2022/11/08 Imported from URL
  • v0.2.12 2022/10/21 Imported from URL
  • v0.2.10 2022/08/20 Bump 0.2.10 Add retry and alert for download image failed
  • v0.2.9 2022/06/03 Minor grammar fix, Merge pull request #14 from NintendoManiac64/NintendoManiac64_minor-grammar-fix Minor grammar fix
  • v0.2.9 2022/06/03 Swaps zoom button positions This matches the positions of the zoom buttons in other software such as Firefox, Chrome, etc., Bump version to 0.2.9, Merge pull request #11 from NintendoManiac64/Swapped-zoom-buttons-1 Swaps zoom button positions
  • v0.2.8 2022/06/03 Update main.js Typo and grammar corrections, Merge pull request #13 from NintendoManiac64/NintendoManiac64_grammar&typo-corrections Grammar and typo corrections
  • v0.2.8 2021/05/15 Update README.md
  • v0.2.7 2021/04/27 Fix login bug in firefox and chrome v0.2.7
  • v0.2.6 2020/11/26 Fix bug for issue #5
  • v0.2.5 2020/07/13 v0.2.5 Add more features Viewer for all page feature Double mode button add reverse feature
  • v0.2.4 2019/11/05 bump v0.2.4
  • v0.2.3 2019/11/05 Fix login page
  • v0.2.3 2018/07/19 v0.2.3 Fix bug line 479
  • v0.2.2 2018/07/02 v0.2.2 Fix maxPic
  • v0.2.1 2018/07/02 v0.2.1 BUG FIX: Can't view image after Page 50 in any gallery
  • v0.2.0 2018/05/19 Imported from URL
  • v0.1.9 2017/12/27 v0.1.9 Add button to switch the viewer mode
  • v0.1.8 2017/11/26 v0.1.8 improved: -the icons are fixed on bottom -add resize range(10%~150%)
  • v0.1.7 2017/11/21 v0.1.7 Add Greasemonkey 4.0+ support Fix cookie undefined in setCookie Add async/await to GM.getValue
  • v0.1.6 2017/11/20 v0.1.6 Fixed -the function that displays single or double pic -initialize config Todo -lazy loading all pic
  • v0.1.5 2017/11/17 v0.1.5 New feature: Add width zoom in and out
  • v0.1.4 2017/11/17 add width zoom in and out
  • v0.1.4 2017/11/16 Fixed width Todo: Add width zoom in and out
  • v0.1.3 2017/11/15 v0.1.3
  • v0.1.2 2017/11/15 change button image and add gap btween images
  • v0.1.2 2017/11/15 v0.1.2
  • v0.1.1 2017/11/14 improve button css
  • v0.1.1 2017/10/13 Fixed regexp
  • v0.1.0 2017/10/13 Fixed login not working in private browsing
  • v0.0.4 2017/10/11 -add view function
  • v0.0.3 2017/10/10 Fiexed download completed
  • v0.0.2 2017/10/10 fixed async
  • v0.0.1 2017/10/10 Update main.js
  • v0.0.1 2017/10/10 Imported from URL