Giter VIP home page Giter VIP logo

betternilam's Introduction

THIS PROJECT IS ARCHIVED BECAUSE OF NEW NILAM SYSTEM

maybe will fix but f4 no time

Watch their demos: autoNilam, niceNilam, ezNilam, autoLogin (undocumented sadly)

feel free to see how these work together lol, give feedback here


It was capable to automate Nilam submissions seamlessly with ChatGPT integration, website styling, and dynamic synopsis generation for a simplified experience.

How It Works

Injecting and Initialization

  • Functions Involved: autoLogin(), webFetch(), inject(), detectSite(), data()

  • If auto-login is enabled and the user is logged out, it logs them in.

  • Fetches HTML elements from here.

  • Injects elements like CSS and sidebar.

  • Detects the site; if the user is on a specific site, it fetches and injects corresponding HTML.

  • Fetches a custom theme from cookies, setting it to default if not present.

NiceNilam

  • Functions Involved: inject(), webFetch(), data()

  • Loads current settings.

  • Replaces CSS <style> with a new one when previewing.

  • Replaces the style cookie when applying changes.

  • Removes CSS and cookies when disabling BetterNilam.

EzNilam

  • Functions Involved: webFetch(), inject(), data(), sendNilam()

  • On Submission:

    • Fetches this page.

    • Extracts the list of previously read books.

    • Replaces default synopsis arguments with information.

    • Checks if the title is in the list of past read books; if yes, aborts the operation.

    • Parses data and sends a POST request to this endpoint.

AutoNilam

  • Functions Involved: webFetch(), inject(), data(), sendNilam()

    • Generates a prompt using preferred settings.

    • After pasting output from ChatGPT:

      • Parses JSON.

      • Loops through the output books to find past read books.

      • If in legit mode, sets a timeout for every book; else, instantly sends all books.

      • Creates a status element for the sending status.

      • Loops to parse data and sends a POST request to this endpoint for every book.

# Install (requires UserScript extension eg: Tampermonkey) # [Latest version](https://raw.githubusercontent.com/du-cc/BetterNilam/main/betterNilam.user.js)

Manually load (not recommended)

document.head.appendChild(Object.assign(document.createElement('script'), { type: 'text/javascript', src: 'https://cdn.jsdelivr.net/gh/du-cc/BetterNilam@main/source.js' }));

betternilam's People

Contributors

du-cc avatar

Watchers

 avatar

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.