e621 subscriptions/watched tags browser extension

In category: e621 Tools and Applications

I've made a browser extension that allows user to subscribe to any kind of tags.

Now available on Google Web Store!

  • Features:
    • Extension adds "OwO/XwX (Subscribe/Unsubscribe)" button for every tag shown on the left sidebar
    • Extension also adds "Watched" button to the navigation bar on top of the page. Clicking it activates special code that shows result as search query with every your tag OR-separated (even if there is more than six of them)
    • List of watched tags can be checked from browser button
    • NEW It is possible to check new images without visiting the site via popup window -- it shows amount of new posts since last visit and shows amount of watched tags in them

    Downloads:
    Get for Firefox
    Chrome Web Store
    CRX file installer for chromium-based browsers
    Unpacked version

    ▼ Installation instructions for Chrome/Chromium-based browsers

    Just download the file and then drag and drop it inside the browser window and follow instructions.

    If you're receiving "apps, extensions, and user scripts can't be added from this website" error (You shouldn't be since version 1.3.2), do the following:
    1. Download unpacked version
    2. Unzip file wherever you want
    3. In browser, go the extensions page (chrome://extensions in address bar)
    4. Enable "Developer mode" option in the top right corner of the page
    5. Click "Load unpacked" and select folder where you unzipped archive from step 2
    6. Done!

    ▼ Other browsers

    Extension is built using WebExtensions API, so feel free to contact me if you want this extension running on your browser


    Nice! That's really useful, thank you!

    Mdf
    Member
    2 months ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    Brave is a chromium based browser (at least per my knowledge) but it throws a dropdown error saying that 'apps, extensions, and user scripts can't be added from this website'.


    Mdf said:
    Brave is a chromium based browser (at least per my knowledge) but it throws a dropdown error saying that 'apps, extensions, and user scripts can't be added from this website'.

    Try enabling developer mode on extensions page ("chrome://extensions" in address bar). If it won't help, rename CRX file into ZIP (or just download the archive), unzip it somewhere and then add it into your browser using "Load unpacked" button on extensions page

    Mdf
    Member
    2 months ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    Hmm, okay, interesting. Doesn't seem to be working, or at least it appears that way. We're making progress though so that's appreciated.

    The 'Watched' tab acts more like a link to 'Posts', just with the addition of /1/ at the url's end, and the subscribe buttons don't appear to do anything visible.

    javascript:void(0) appears in the lower left so I'd assume it has something to do with my javascript settings but those are already set to allow.

    Cookies - Allowed
    JS - Allowed
    Autoplay - Blocked
    Flash - Blocked
    Popups/Redirects - Blocked

    Going back into the extensions section, it seems like an error of some sort was thrown.

    https://snag.gy/6Hk4IV.jpg

    Line 36 is highlighted: var sender = event.detail.sender;
    https://pastebin.com/T2UM88Fj


    Mdf said:
    The 'Watched' tab acts more like a link to 'Posts', just with the addition of /1/ at the url's end, and the subscribe buttons don't appear to do anything visible.

    Yep, it will behave like that until you subscribe to any tags

    javascript:void(0) appears in the lower left so I'd assume it has something to do with my javascript settings but those are already set to allow.

    It is ok, too.

    Going back into the extensions section, it seems like an error of some sort was thrown.

    Well, it is not okay. I'll see what can be done here today or tomorrow


    Mdf said:
    Line 36 is highlighted: var sender = event.detail.sender;
    https://pastebin.com/T2UM88Fj

    Fixed it, tested it on latest version of browser, seems working. Still have no idea why the same code was running perfectly on pure Chromium and refused to do so on Brave.

    Mdf
    Member
    1 month ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    milesseventh said:
    Fixed it , tested it on latest version of browser, seems working. Still have no idea why the same code was running perfectly on pure Chromium and refused to do so on Brave.

    Uninstalled the old version and reinstalled the new version. Alright, starting to see function. Clicking on the icon changes OwO to XwX but it only does so for the top most tag (often the artist).

    After just leaving the artist tag as is and going to the 'Watched' tab, I'm redirected to a search with "~X " in the tag search with no relation to the selected tag, or the artist tag.

    Clicking the back button and force refreshing now shows all the icons as XwX and clicking on them only toggles the artist tag.

    No errors are being thrown in the extensions page. Clearing cookies shouldn't be a problem as I'm getting the same results in incognito mode .


    Mdf said:
    Uninstalled the old version and reinstalled the new version. Alright, starting to see function. Clicking on the icon changes OwO to XwX but it only does so for the top most tag (often the artist).

    Курва!

    Should be working now, but cannot test it

    Well, which version of browser do you use? I installed latest from their site and can't reproduce it.
    The previous problem was related to determining which OwO button was clicked to change it's title, and it seems like fix didn't help. Still, it has to be able to maintain list of subscriptions, just can't refresh their titles.
    You can try checking it opening combatfox.js file in text editor and making line "DEBUG_LOGGING" look like "const DEBUG_LOGGING = true;". After reloading extension it will show the list of tags in the console after every button click.
    No need to clear cookies, they are not used.

    Dunno how it works, should we probably move to PM?


    Installed!

    Honestly, I don't know why it isn't a built-in functionality of e621 itself yet. Such an obvious thing to have, one would think.

    Mdf
    Member
    1 month ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    milesseventh said:
    Well, which version of browser do you use? I installed latest from their site and can't reproduce it.

    Dunno how it works, should we probably move to PM?

    Version 0.60.45 Chromium: 72.0.3626.109 (Official Build) (64-bit)

    const TAG_PER_QUERY_LIMIT = 6;
    const DEBUG_LOGGING = true;
    const MERGE_LOGGING = false;
    const ERROR_LOGGING = true;
    

    After changing

    DEBUG_LOGGING
    

    to true, I turned the extension off and back on, nothing appears to have changed and no errors are apparent.

    I think it would be a good idea to keep debugging public so that way other people who might be testing can see what's already been tried.

    Angurr said:
    Honestly, I don't know why it isn't a built-in functionality of e621 itself yet.

    Back when I was newer I thought that this was a feature that privileged/contributor users but looking at the help page either I just made up a memory or it got removed at some point. :/
    https://e621.net/help/show/accounts

    Hey, since you have it installed (and presumably working), what browser are you using?


    Mdf said:
    Version 0.60.45 Chromium: 72.0.3626.109 (Official Build) (64-bit)
    Hey, since you have it installed (and presumably working), what browser are you using?

    Version 0.60.45 Chromium: 72.0.3626.109, x64
    O_o

    Well, what's with new version?

    Angurr said:
    Honestly, I don't know why it isn't a built-in functionality of e621 itself yet. Such an obvious thing to have, one would think.

    There was request for it few years ago

    Mdf
    Member
    1 month ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    milesseventh said:
    Well, what's with new version ?

    Aye, that's the version I previously tried, didn't work.


    Mdf said:
    Aye, that's the version I previously tried, didn't work.

    Ok, thank you for feedback. Just to make sure:
    > When page loads, you see "Watched" button and series of OwO button near the tags
    > When you click the any OwO button, only first button changes, and only if you click the same button
    > If you click any button once, "Watched" button should show search query with the tag you clicked

    I've made a special version with extra logging, so it should log almost every action it does. To view logs hit cmd+alt+i(Mac) or F12(Win) button and navigate to "Console" tab. Do some clicking and show me it's contents please, if any. Best scenario is you click same button twice and then click few others one time per tag, but it's not mandatory. Here is the file

    Mdf
    Member
    1 month ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    https://snag.gy/5W3Ezt.jpg

    Let me know if you need anything else.


    Mdf said:
    https://snag.gy/5W3Ezt.jpg

    Let me know if you need anything else.

    Thanks!
    Seems like script was detecting X button as a tag link, maybe because it was added by third party. I improved it to do this detection better, so try it out. I'll update this if it works fine

    Link

    Mdf
    Member
    1 month ago
    2018 black_scales caelthar claws collar confusion digital_media_(artwork) dragon feral horn kodardragon looking_at_viewer male membranous_wings open_mouth plushie scales scalie simple_background solo standing teeth toe_claws toes tongue western_dragon wings

Rating: Safe
Score: 142
User: Millcore
Date: September 13, 2018

    milesseventh said:
    I improved it to do this detection better, so try it out. I'll update this if it works fine

    Ahhhhh, that seems to have achieved a desired result.
    https://snag.gy/CYAWnt.jpg

    It would appear that the search engine doesn't mind using more than the usual 'member' allotment of six tags per query so that's nice for starters. I wonder if that would open up the potential for abuse of site features?

    Not expecting much as far as functionality goes since this is for all intents and purposes, v1. Future functionality I'd like to see is the extension in the sidebar, click that and have it drop down, and make it so the tag that is clicked on (or maybe even check mark multiple tags?) opens up another tab and the search results are shown.

    Furthermore, I think that separating artists, characters, and the likes from regular tags would also be a smart improvement.

    The Watched tab shows what you'd expect it to, nothing much comes to mind on how that can be improved aside from what I had already mentioned about the extension in the sidebar in the comments above. I don't want to be seen as asking too much so I'll just leave it at that for now.

    My only question is if it would show an alert that a new image has been uploaded using a tag on your watch list? I can see this being very helpful when it comes to following artists and characters in particular.


    Mdf said:
    Ahhhhh, that seems to have achieved a desired result.
    https://snag.gy/CYAWnt.jpg

    Nice to hear that =3
    Release version with disabled logging

    Mdf said:
    It would appear that the search engine doesn't mind using more than the usual 'member' allotment of six tags per query so that's nice for starters. I wonder if that would open up the potential for abuse of site features?

    Extension doesn't interact with site in any special way -- it just makes requests like users do, and merges their results with page contents, as if you were browsing with few tabs open.

    Thank you for suggestions, there are no alerts currently but I'll surely implement those features later


    Hey !

    It'd be very cool if we could access the link of the tags we are watching just by clicking on them on the little pop-up.

    ( Example => https://e621.net/post?tags=example )

    Also see the amount of images contained by a tag since the last time we clicked on it. (I don't know if it's very understandable but xD)

    Because all work deserves to be rewarded I could give you some money for adding these fonctionalities just DM me.

    Thanks for the amazing tool !


    New version available!

    > Added check for new posts in popup window. Once plugin icon is clicked, it checks if new posts is available and shows their amount in the window.
    > List of watched tags is clickable now
    > Few minor UI improvements: Fixed popup window size on Chrome, added "View watched" button into the window

    Get it for Firefox
    Get it for Chrome or other Chromium-based browser
    Unpacked version


    An update just popped up, that the extension now wants access to data on all sites. What changed to warrant this permissions update?


    Angurr said:
    An update just popped up, that the extension now wants access to data on all sites. What changed to warrant this permissions update?

    Fixed it, sorry. Now it is limited to e621.net. Permission is used to request data from popup script to check if there is any new posts. It is needed because popup is not directly related to e621.net from browser's point of view.

    Falp
    Member
    1 day ago

    I started using this to replace all my open tabs (tree tabs) and near the bottom of the list noticed that suddenly everything I had watched disappeared. Only a few tags were left on the list.
    There wouldn't happen to be a 'history' of sorts would there?