Tutorials & Resources Greasemonkey userscript index

Discussion in 'Novel Updates Site Discussion' started by Nazgand, Jan 15, 2017.

  1. Nazgand

    Nazgand New Member

    Joined:
    Oct 1, 2016
    Messages:
    480
    Likes Received:
    407
    Reading List:
    Link
    If you know of a userscript related to NU or relates sites, post the required information, and I will add it to the first post of this thread. Please do not post bugs for existing userscripts in this thread; contact the maintainer. Ideas for new userscripts are welcome.

    Name: novelupdates Cover Preview
    Sites: www.novelupdates.com
    Desc: Previews covers in novelupdates.com when hovering over hyperlinks that lead to novel pages.
    Maintainer: @sz
    Script Home: https://greasyfork.org/en/scripts/26439-novelupdates-cover-preview
    NUF Thread: http://forum.novelupdates.com/threads/novel-updates-userscript-to-preview-cover-images.25570/

    Name: 17k-google translate fix
    Sites: *.17k.com
    Desc: Wrap text bocks on 17k in p tags so google translate wont skrew up the format
    Maintainer: @Fordask
    Script Home: http://forum.novelupdates.com/posts/120671/

    Name: Wuxiaworld Script
    Sites: www.wuxiaworld.com
    Desc: Wuxiaworld tooltips
    Maintainer: Randyr
    Script Home: https://greasyfork.org/en/scripts/19380-wuxiaworld-script

    Name: EasyNav
    Sites: gravitytales.com royalroadl.com scrya.org wuxiaworld.com xianxiaworld.net
    Desc: Enable Next and Prev Chapter by Pressing Right and Left Arrow key.
    Maintainer: @An0N
    Script Home: https://greasyfork.org/en/scripts/21447-easynav
    NUF Thread: http://forum.novelupdates.com/threads/greasemonkey-script-easynav.12969/
    Note: Since this userscript was created, gravitytales.com and xianxiaworld.net have this function built in, so this script is only needed for the other sites.

    I do not plan to list the manga userscripts here, as they are not novel userscripts, but there is a good post here: http://forum.novelupdates.com/posts/320722/
     
    Last edited: Sep 9, 2017
    sithkazar, MangoGuy, hillo315 and 6 others like this.
  2. Nazgand

    Nazgand New Member

    Joined:
    Oct 1, 2016
    Messages:
    480
    Likes Received:
    407
    Reading List:
    Link
    Apparently there is a newly blocked site in the previous post, as everytime I try to edit it, the forum freaks out.

    Name: Novel Updates Cover Preview
    Sites: *.novelupdates.com
    Desc: Add cover previews when hovering over links to novels.
    Maintainer: @Nazgand (Original Author: @noisypixy (Original Original Author: @sz ))
    Script Home: https://github.com/Nazgand/userscripts
    Note: this script is based off of the previous cover preview script, however, the cover popup looks different and this script also works on the forums once you grant the script cross site scripting. Now also shows the description with the preview.

    Name: Novel Updates Remove Moved Threads
    Sites: forum.novelupdates.com/forums/*
    Desc: Remove Moved Threads.
    Maintainer: @Nazgand
    Script Home: https://github.com/Nazgand/userscripts

    Name: Novel Updates Filter Other's Readinglist
    Sites: www.novelupdates.com/readlist/*
    Desc: Adds a link to user reading lists to remove series with less than 4.5 rating and a link to only show the series that the user is up to date on
    Maintainer: @Nazgand
    Script Home: https://github.com/Nazgand/userscripts

    Name: Lnmtl Learn Chinese
    Sites: http://lnmtl.com/chapter/*
    Desc: show the 字 next to the words that would usually be in popups
    Maintainer: @Nazgand
    Script Home: https://github.com/Nazgand/userscripts
    Note: Works in Google Chrome, but not Firefox
     
    Last edited: Jul 1, 2017
    hillo315, runsing, Ophious and 4 others like this.
  3. Trigun

    Trigun Active Member

    Joined:
    Jan 27, 2017
    Messages:
    19
    Likes Received:
    9
    Reading List:
    Link
    Last edited: Jan 29, 2017
  4. Nazgand

    Nazgand New Member

    Joined:
    Oct 1, 2016
    Messages:
    480
    Likes Received:
    407
    Reading List:
    Link
    runsing likes this.
  5. Nazgand

    Nazgand New Member

    Joined:
    Oct 1, 2016
    Messages:
    480
    Likes Received:
    407
    Reading List:
    Link
    Novel Updates Cover Preview has been updated because `[1] group(s) hidden due to dead links. Click to show all releases.' incorrectly showed the cover preview.
     
  6. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
  7. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    I made a new script for Novel Updates which automatically loads the page of the chapter list to show your last read chapter.

    (only works on the main series page, if you manually navigate to a different page of the chapter list it won't do anything)

    https://greasyfork.org/en/scripts/395673-nu-auto-show-last-read
     
  8. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
  9. EvilChuuniCatEars

    EvilChuuniCatEars Member

    Joined:
    Feb 24, 2020
    Messages:
    21
    Likes Received:
    20
    Reading List:
    Link
    Currently, I only have the 'Anti Adblock Filter' as a TamperMonkey script, but it's not working on WordPress today, like on 'novelnomicon'.

    Some of these sites are have nasty scripts, so I would definitely recommend being 'inflexible' about off-site inclusions of any kinds. The more one whines about 'ad blocking', the more likely it is they're serving up malware ads. Many forums have an excess of spyware, sending your every action to third parties, as well.

    I use a variety of plugins, to work around various issues.

    First is 'uBlock Origin'. Not only does it block ads, it adds a context menu (right click) item to remove things from web pages. Like floating menus, EU cookie banners, etc. that are part of a site, but are just shitty design. This is super handy for annoyances found on MANY novel sites. No, I don't want to subscribe to 'wordpress', so make that floating banner go away forever.

    I definitely highly recommend 'uMatrix' after that. This provides a little popup matrix under its plugin icon. You can selectively disable javascript and css and frames and images and all kinds of things, especially off-site content. To the point where you can utterly break web pages... but you can reset/disable it per-site, or dink around with the exclusions/inclusions to 'make' things work. Lots of novel sites and other content actually work a lot better when you kill off practically everything, and turn it into 'just text'. Sort of like a 'Reader View' with lots of clutter, but automatic. I was able to make the 'novelnomicon' work WITH script (to load the content), and WITH ad blocking, by disabling 'XHR' and 'CSS' columns, and disabling some of the popup fuckery with 'uBlock Origin' and its 'Block Element' feature.

    'Reader View' can pierce through cluttered or blurred content, like 'You Have an Ad Blocker' whining about pupups overlays, but the page stays 'blurred'. Unfortunately, it doesn't 'automatically' open its self.
     
  10. Zpass3r

    Zpass3r Active Member

    Joined:
    Oct 10, 2020
    Messages:
    2
    Likes Received:
    0
    Reading List:
    Link
    hi Guys, i am looking for a script that load the pages of NU lists
    Endless Google is an example
    is there any for NU???
     
  11. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    I have made a few scripts for ScribbleHub. They're things I wanted for my own browsing habits but hopefully they're useful to you lot as well.

    SH Arrow Key Next/Prev Chapter
    Navigate to the next / previous chapter on right / left arrow keys on ScribbleHub. Obviously this is for PC users, not mobile.

    SH Auto Show Bookmark
    Automatically change the Table of Contents page to show your bookmarked chapter when opening a series page on Scribble Hub. Designed for people who like to ignore new chapters for a while and then binge them.

    SH Continue Reading Anywhere
    When viewing any chapter of a story you've bookmarked on Scribble Hub, this will add a button to continue reading from your current bookmarked chapter. Ideal if you regularly switch between reading on your phone and computer.

    SH List All Chapters
    Override the "Show All Chapters" button to list all chapters in the Table of Contents on ScribbleHub series pages instead of a pop-up.

    SH Permalinks for Comments
    Convert the timestamps on ScribbleHub chapter comments into permalinks to make sharing comments easier.
     
    Nazgand likes this.
  12. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    Unrelated to Scribble Hub or Novel Updates, but I also made a script to redirect me from normal Amazon to Amazon Smile so that my purchases result in a donation to charity. For those of you who haven't heard of Amazon Smile, the donation is from Amazon and is at no extra cost to you, the purchaser, but you can choose which charity your purchases support. I'm not sure if this is available in every region / country, though, so check before you install it.

    Amazon Smile Redirect
    Redirect automatically from normal Amazon to Amazon Smile to support charities! (change the TLD in the @match line for your preferred Amazon site, e.g. .com or .es)
     
    Nazgand likes this.
  13. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    You install an extension in your browser (see the Greasy Fork homepage for a list of common ones) and then you can add "userscripts" to that extension. These scripts are basically just JavaScript code that interact with the page you are looking at to modify how the page works, add new features, or whatever.

    If you don't like the way a website behaves or if you think there's a really cool feature missing, you can make it yourself or see if someone else already wrote some code for it.
     
  14. Tenome

    Tenome Active Member

    Joined:
    Jun 21, 2021
    Messages:
    13
    Likes Received:
    10
    Reading List:
    Link
  15. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    Reddit Links Open in Same Tab
    Remove target="_blank" from links within Reddit posts so they open in the current tab. Developed for next chapter links on r/HFY but generic enough that it should work on pretty much any Reddit text post.
     
  16. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    I also just found this one by @sgrey in another thread which is super-helpful and I can't believe I never thought to make one like this myself!

    Change Date Format to DD/MM/YYYY
    https://forum.novelupdates.com/threads/date-format-userscript-in-op.87576/page-2#post-5007124

    Code:
    // ==UserScript==
    // @name         ChangeNUDateFormat
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  Changes the date format in the NU release list to dd/mm/yyyy
    // @author       sgrey
    // @match        https://www.novelupdates.com/series/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        /*
        * Change month: '2-digit' to month: 'numeric'
        * to remove mandatory 0 in front of 1-digit months
        */
        var options = {year: 'numeric', month: '2-digit', day: '2-digit' };
        var table = document.getElementById("myTable");
    
        for (var i = 1, row; row = table.rows[i]; i++) {
           var date = Date.parse(row.cells[0].innerHTML);
           row.cells[0].innerHTML = new Date(date).toLocaleDateString('en-GB', options);
        };
    })();
     
  17. sgrey

    sgrey Well-Known Member

    Joined:
    Jul 12, 2017
    Messages:
    1,206
    Likes Received:
    1,492
    Reading List:
    Link
    well, thanks and all, but now there is actually a setting that changes the date format with several options :) it's in the main site account settings
     
  18. Ultrabenosaurus

    Ultrabenosaurus Well-Known Member

    Joined:
    Jul 21, 2016
    Messages:
    53
    Likes Received:
    46
    Reading List:
    Link
    Huh, that's neat. I don't re-check account settings ever, so I never saw that! Your userscript works perfectly for me though :blobxd:
     
  19. sgrey

    sgrey Well-Known Member

    Joined:
    Jul 12, 2017
    Messages:
    1,206
    Likes Received:
    1,492
    Reading List:
    Link
    yea, I think I just randomly clicked there one time and was like - holly shit, there is a date format here now!?