<commit_before># Pixiv Assistant (Defunct Greasemonkey Script)

## **I am abandoning this repository as a greasemonkey scripts. The structure of chrome extensions is different enough that I will be picking up development in a new repository. This is left up in case anyone was interested in the greasemonkey code and the beginning of the transition**

Final README below.

****

Pixiv Assistant is a chrome extension adding functionality to the popular gallery site Pixiv. The extension provides translation services and quality of life improvements. Used in concert with the downloadable executable ([paarthk/pixiv-assistant-server](https://github.com/paarthk/pixiv-assistant-server)), the extension provides bulk downloading, folder traversal, and information about images that have already been downloaded. 

## **Warning**: Pixiv Assistant is currently under heavy development as it is converted from a greasemonkey script to a chrome extension. 

I'm realizing I'm going to have to throw away most of the patterns implemented during the greasemonkey work. The chrome extension architecture is just structured very differently. Content scripts are far more limited than user scripts. 

# Translation features

There are two dictionaries maintained by the extension. 

One is a global dictionary provided by the pixiv-assistant/dictionary repository. This is shared among all users and provides sane translations for many of the most popular tags on Pixiv. This dictionary is managed in the control panel. This is a github repo and takes pull requests, please feel free to submit translations. 

The other is a locally stored user dictionary for any definitions that the global dictionary may not provide. The user dictionary takes priority over the global dictionary, meaning users can override translations from the global dictionary with their own custom translations

#Project Features (WIP)

## Tag translation

Last and first page buttons will be injected where possible.

## Global

### Control Panel

### Add Translation

A small modal to immediately add a translation to the user dictionary. On pages that focus on a specific tag (the search page for a single tag, the member tag works page) the modal will automatically load with the Japanese text and a machine translation to English.

## Works page

 * Jump to last page
 * Open to artist folder
 * Open all images in new tabs

## Illustration page
<commit_msg>lol nope nvm<commit_after># Pixiv Assistant

Pixiv Assistant is a chrome extension adding functionality to the popular gallery site Pixiv. The extension provides translation services and quality of life improvements. Used in concert with the downloadable executable ([paarthk/pixiv-assistant-server](https://github.com/paarthk/pixiv-assistant-server)), the extension provides bulk downloading, folder traversal, and information about images that have already been downloaded. 

## **Warning**: Pixiv Assistant is currently under heavy development as it is converted from a greasemonkey script to a chrome extension. 

# Translation features

There are two dictionaries maintained by the extension. 

One is a global dictionary provided by the pixiv-assistant/dictionary repository. This is shared among all users and provides sane translations for many of the most popular tags on Pixiv. This dictionary is managed in the control panel. This is a github repo and takes pull requests, please feel free to submit translations. 

The other is a locally stored user dictionary for any definitions that the global dictionary may not provide. The user dictionary takes priority over the global dictionary, meaning users can override translations from the global dictionary with their own custom translations

#Project Features (WIP)

## Tag translation

Last and first page buttons will be injected where possible.

## Global

### Control Panel

### Add Translation

A small modal to immediately add a translation to the user dictionary. On pages that focus on a specific tag (the search page for a single tag, the member tag works page) the modal will automatically load with the Japanese text and a machine translation to English.

## Works page

 * Jump to last page
 * Open to artist folder
 * Open all images in new tabs

## Illustration page

{'fraction_non_alphanumeric': 0.038425492033739454, 'fraction_numerical': 0.0, 'mean_word_length': 4.761133603238866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5462638', 'n_tokens_mistral': 971, 'n_tokens_neox': 903, 'n_words': 609}