<commit_before><link rel="import" href="../connector.html">

<script>

    /**
     *
     */
    class ReadRawManga extends Connector {

        /**
         *
         */
        constructor() {
            super();
            // Public members for usage in UI (mandatory)
            super.id         = 'readrawmanga';
            super.label      = 'Manhua RAW (ReadRawManga)';
            this.tags        = [ 'manga', 'raw', 'multi-lingual' ];
            super.isLocked   = false;
            // Private members for internal usage only (convenience)
            this.url         = 'http://www.readrawmanga.com';
            // Private members for internal use that can be configured by the user through settings menu (set to undefined or false to hide from settings menu!)
            this.config = undefined;
        }

        /**
         *
         */
        _getMangaList( callback ) {
            this.fetchDOM( this.url + '/', 'div#sidebar div#Label1 div.list-label-widget-content ul li a' )
            .then( data => {
                let mangaList = data.map( element => {
                    return {
                        id: this.getRelativeLink( element ),
                        title: element.text.trim()
                    };
                } );
                callback( null, mangaList );
            } )
            .catch( error => {
                console.error( error, this );
                callback( error, undefined );
            } );
        }

        /**
         *
         */
        _getChapterList( manga, callback ) {
            this.fetchDOM( this.url + manga.id, 'div#main div#Blog1 article div.manga_post span.mg_title h2.entry-title a' )
            .then( data => {
                let chapterList = data.map( element => {
                    return {
                        id: this.getRelativeLink( element ),
                        title: element.text.replace( manga.title, '' ).replace( /\(\s*read raw manhua\s*\)/i, '' ).trim(),
                        language: ''
                    };
                } );               
                callback( null, chapterList );
            } )<commit_msg>[readrawmanga] updtaed CSS queries increased number of shown chapters (dirty fix) resolves #62<commit_after><link rel="import" href="../connector.html">

<script>

    /**
     *
     */
    class ReadRawManga extends Connector {

        /**
         *
         */
        constructor() {
            super();
            // Public members for usage in UI (mandatory)
            super.id         = 'readrawmanga';
            super.label      = 'Manhua RAW (ReadRawManga)';
            this.tags        = [ 'manga', 'raw', 'multi-lingual' ];
            super.isLocked   = false;
            // Private members for internal usage only (convenience)
            this.url         = 'http://www.readrawmanga.com';
            // Private members for internal use that can be configured by the user through settings menu (set to undefined or false to hide from settings menu!)
            this.config = undefined;
        }

        /**
         *
         */
        _getMangaList( callback ) {
            this.fetchDOM( this.url + '/', 'div.sidebar div#Label1 div.list-label-widget-content ul li a' )
            .then( data => {
                let mangaList = data.map( element => {
                    return {
                        id: this.getRootRelativeOrAbsoluteLink( element, this.url ),
                        title: element.text.trim()
                    };
                } );
                callback( null, mangaList );
            } )
            .catch( error => {
                console.error( error, this );
                callback( error, undefined );
            } );
        }

        /**
         *
         */
         _getChapterList( manga, callback ) {
            let uri = new URL( manga.id, this.url );
            uri.searchParams.set( 'max-results', 999 );
            this.fetchDOM( uri.href, 'div#main div#Blog1 div.post article h2.post-title a' )
            .then( data => {
                let chapterList = data.map( element => {
                    return {
                        id: this.getRootRelativeOrAbsoluteLink( element, uri.href ),
                        title: element.text.replace( manga.title, '' ).replace( /\(\s*read raw manhua\s*\)/i, '' ).trim(),
                        language: ''
                    };
                } );               
                callback( null, chapterList );
            } )
{'fraction_non_alphanumeric': 0.11692036179130819, 'fraction_numerical': 0.0024266490183101697, 'mean_word_length': 1.2127867252318203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2493506', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1120, 'n_words': 287}