KOLANICH-tools / jN-npp-scripts

A collection of scripts for jN Notepad++ plugin !!! Migrated to Codeberg ๐Ÿ”๏ธ !!!

Home Page:https://codeberg.org/KOLANICH-tools/jN-npp-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jN-npp-scripts

We have moved to https://codeberg.org/KOLANICH-tools/jN-npp-scripts, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in widespread adoption of FIDO 1FA specifications and Windows Hello implementation which M$ promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


This is scripts for jN plugin for Notepad++ editor.

Installation

  1. Clone to Notepad++ plugins\jN folder (basically, it's C:\Program Files\Notepad++\plugins\jN)
  2. Initialize submodules.
  3. Restart Notepad++

includes Folder contains several JavaScript Files. They implement some functionality.

  • zen coding.js - extends Npp with "Zen Coding" functionality,
  • decode.js - adds menu, that allows to decode text from some encoding to UTF-8,
  • clearcase.js - adds menu, that allows to work with files under clearcase version control,
  • gTranslate.js - adds menu, that allows you to translate some selected text,
  • MenuCmds.js - allows you to execute some standard menu actions of Npp,
  • run.js - adds menu and hotkey to run some javascript direkt from Npp,
  • Dialog.js - adds Internet Explorer based dialog functionality, including gridview dialog about errors of different tools
  • test.menu.js - some tests and samples of functionality of nppscripting plugin,
  • includes.js - adds new Menu, that allows you to open files in includes.

kTools

kTools is the main part of this repo, it is a framework to add more tools to NPP using jN plugin.

  • kTools.js - base for kTools. It provides base objects for modules with some useful functionality. Its architecture is not optimal - it depends on global variable, but I dont know how to sandbox every module. Maybe some kind of metadata block?
  • ktools/ - modules for kTools are stored in this folder
    • GoogleClosureCompiler.js - allows you to optimize JS source with Google Closure Compiler just from editor.
    • JSNice.js - A statistical deobfuscator of JS. Infers names using CRF. More info.
    • leeter.js - allows you convert text to 1337 5?34|<
    • PHPLint.js - binding to PHPLint, you'll have to edit the file to write correct path to it
    • KaitaiStructCompiler.js - binding to Kaitai Struct compiler, you'll have to edit the file to write correct path to it
    • deobfusctators.js - some self-written deobfuscators generally for JS. The name of obfuscator is often unknown (I'll be glad if you will say me the name if you know it).

Move any of these files into "includes/disabled" to disable it. For example clearcase.js if you don't know what is this :-).

Hacking

jN API reference

To add a module to kTools you need to create a file in kTools folder, inherit something in kTools.js, and register it with kTools.addModule.

  • kToolsModule is just a module with menu.
  • kToolsCommandLineModule is a module which uses some CLI tool and parses it output. It allows you to add support of cli tools with minimum effort. If you provide it with the paths, it even won't put waste into the menu if the tool is not present!

About

A collection of scripts for jN Notepad++ plugin !!! Migrated to Codeberg ๐Ÿ”๏ธ !!!

https://codeberg.org/KOLANICH-tools/jN-npp-scripts


Languages

Language:JavaScript 99.3%Language:XSLT 0.6%Language:CSS 0.1%