Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Script] Rename/Expunge Tracker Helper 1.1.2 (22 Jan 2017 Chrome Hotfix)

 
post Jan 5 2017, 02:45
Post #1
TeaAndBiscuits



Newcomer
*
Group: Gold Star Club
Posts: 46
Joined: 19-October 13
Level 237 (Destined)


Rename/Expunge Tracker Helper

TL;DR - You can hide stuff you've already seen and click URLs in the expunge tracker.

I wanted to make the trackers a bit easier to use, so I wrote a small script.
The script is compatible with Superlatanium's Rename Helper 1.2.4, which is obviously recommended.

Latest Version: 1.1.2

Attached File  RETH_1.1.2.user.js.txt ( 22.85k ) Number of downloads: 111

Updated to work with Chrome again.

Before and after

Expunge tracker

Attached Image

It also has the green highlighting from the next image.

Rename tracker

Attached Image

Features

Temporarily hide entries

Hiding an entry forever probably isn't a good idea – you could spot a mistake that you didn't spot earlier.
A hidden entry will become visible again if any of the following happen:
  1. You click the button to show it.
  2. You click the "Show All" button and it's on the current page.
  3. Its "latest timestamp" changes.
    • I.e. someone else votes on it, or the latest person to vote removes their vote.
    • You have to refresh for this.
    • Note: A hidden entry will not re-open if it was updated, hidden and then updated again during the same minute, since the timestamp won't change.
      It'll re-open when the timestamp changes. This will not be fixed unless we gain access to the seconds, not just the minutes.
  4. It becomes the 200th last petition you hid and then you hide another.
    • 200 is an arbitrary limit; it can be changed.
This is mainly useful when you're looking through past petitions for any that got ignored.
You can hide them as you go along, and if any updates occur they'll reappear.

Example of a hidden entry becoming visible:
Attached Image

Video of it in action:
[youtu.be] https://youtu.be/i9qA4nr3cGo

The reason why I don't check whether they voted on your petition or not is because, as stated before, you might notice something you missed earlier.

Cleaning the expunge reasons

URLs in the Expunge Tracker's "reason" column will be converted to clickable links.
It will also fix the HTTPS links that people sometimes put.
Finally, it should add space either side of links, to make it more readable.

Other features
  • Any petitions you have voted on will be highlighted, and your username will be underlined.
    This is useful for identifying entries where the top petitions are your ones, so you can hide them more easily.
  • The power column was made to have a min-width of 40px, so things line up properly.
  • You can filter entries to view only those that are visible, hidden or done by you.
  • You can show/hide all filtered entries on the current page.
    This can be used to show/hide all entries you voted on, or to view only the hidden stuff, re-check them and then "Hide Current" again.
  • You can auto-show petitions which are finished. Go to settings for this.
    In effect, this helps clear up unused cache, for when a petition moves off the first pending page because it was voted on, and finished or a petition moves off the last pending page because it was there too long.
    This isn't useful if you browse the "Expunged"/"Renamed" pages often and want to keep things hidden there, since when you visit the pending page they'll auto-show again.
Perhaps to-do
  • Convert links to individual images in galleries.
  • Allow GET variables to be part of the converted links (i.e. linking a gallery with ?p=4).
    Not important for now, since you can just see the ?p=4 after the link.
  • Forcing entries to stay hidden.
    Presumably only ones that you haven't vote on.
  • Keeping entries hidden if all votes after you last hid it are on your petitions.
    • Should probably highlight or something when updated.
  • Peeking at entries: opening them without keeping them open forever.
    • So you can look at something and then scroll and forget where it was, and it'll close itself on refresh.
    • Alternatively, an undo button.
Changelog

1.1.2

Attached File  RETH_1.1.2.user.js.txt ( 22.85k ) Number of downloads: 111

Fixes for Chrome.
  • Changed RegEx URL matching back to normal.
  • Added fix for "Show Current" on Chrome.

1.1.1

Attached File  RETH_1.1.1.user.js.txt ( 23.24k ) Number of downloads: 27
  • Added compatibility for https and removal of "g.".
    NOTE: Removing the "g" sub-domain makes you use different storage, so your settings will disappear and hidden entries re-appear until you put the "g." back.
1.1.0
  • Added data to hidden entries.
  • Moved to singular storage space. (1.0 -> 1.1)
    If you want to remove the old storage, open your browser console and enter the following:
    CODE
    delete localStorage['collapsed-expunge-petitions']
    delete localStorage['collapsed-rename-petitions']
1.0.1
  • Added default "#" to links.
  • Script compatibility: moved to classList and added "reth-" to classes to prevent conflicts.
1.0.0

Initial version.
Attached File  Rename_Expunge_Tracker_Helper.user.js.txt ( 10.72k ) Number of downloads: 22


This post has been edited by TeaAndBiscuits: Jan 23 2017, 01:36
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 7 2017, 22:54
Post #2
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,045
Joined: 24-March 12
Level 500 (Godslayer)


Both scripts (yours and Super's) added to the index.

Super's script already highlights trailing and leading spaces. But, if there is one thing that I may suggests to add to the TODOs, is a highlight to the differences between the petitions. For example, you could see petitions that differ only by a single character.

Good work btw
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 8 2017, 03:44
Post #3
TeaAndBiscuits



Newcomer
*
Group: Gold Star Club
Posts: 46
Joined: 19-October 13
Level 237 (Destined)


QUOTE(blue penguin @ Jan 7 2017, 20:54) *

Super's script already highlights trailing and leading spaces. But, if there is one thing that I may suggests to add to the TODOs, is a highlight to the differences between the petitions. For example, you could see petitions that differ only by a single character.

Good work btw

Super's script highlights the first and last changed character, not the leading/trailing spaces. So it already tells you for those where a single character was added/changed.
I used this just today with a rename that was only changing が to が (those are different).

I could try adding a sequence alignment algorithm, that shows you the edits made from one name to the next. To keep it compatible with Super's and to keep it readable, I would need to make it so you click on a name to see the differences.
Not a high-priority thing though, since as above, Super's already tells you the first and last changed characters.

And thank you. (IMG:[invalid] style_emoticons/default/smile.gif)
I'll be updating this soon to add some extra stuff I've been working on.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 22 2017, 13:41
Post #4
hotdogls321



BWW
*****
Group: Gold Star Club
Posts: 676
Joined: 3-September 16
Level 500 (Godslayer)


Thank you!
But today when I try this, it doesn't work for me. The script list is showing your scripts but the features are not showing in the page.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 23 2017, 01:43
Post #5
TeaAndBiscuits



Newcomer
*
Group: Gold Star Club
Posts: 46
Joined: 19-October 13
Level 237 (Destined)


QUOTE(hotdogls321 @ Jan 22 2017, 11:41) *

Thank you!
But today when I try this, it doesn't work for me. The script list is showing your scripts but the features are not showing in the page.

Thanks. If you're using Chrome it should be fixed.
It apparently doesn't like regular expressions. (IMG:[invalid] style_emoticons/default/dry.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 23 2017, 02:00
Post #6
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,045
Joined: 24-March 12
Level 500 (Godslayer)


Chrome is trying to force their own @match (instead of @include), but @match is kind of crap 'cause it cannot match url parameters.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 23 2017, 02:44
Post #7
hotdogls321



BWW
*****
Group: Gold Star Club
Posts: 676
Joined: 3-September 16
Level 500 (Godslayer)


Yes! It's working now. Thank you!
---------------
By the way, is there anyone heard of x-links (a script for our forums)?
It's very useful but it's not working from yesterday. I guess it just has the similar problem or the problem of https/http switching ...

This post has been edited by hotdogls321: Jan 23 2017, 02:48
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 23 2017, 03:13
Post #8
TeaAndBiscuits



Newcomer
*
Group: Gold Star Club
Posts: 46
Joined: 19-October 13
Level 237 (Destined)


QUOTE(hotdogls321 @ Jan 23 2017, 00:44) *

By the way, is there anyone heard of x-links (a script for our forums)?
It's very useful but it's not working from yesterday. I guess it just has the similar problem or the problem of https/http switching ...

Not heard of x-links, but
Edit:
Just looked it up, found it here: [dnsev-h.github.io] https://dnsev-h.github.io/x-links/
They haven't updated it yet, but by the looks of it, there are two instances of "g.e-hentai.org" that could be replaced with "e-hentai.org". That might fix it.

I had a script called "Vote Expunge Torrents" that stopped working. One that adds a button to posts in the Re-Up vigilante thread.
I can't find where I got it from, but I fixed it by editing it to replace the http ://g.e-hentai.com that it was looking for with https ://e-hentai.com (spaces there to break the links, so it doesn't auto-change them).
If you're not sure on how to edit it, send it to me (attach via PM or here, or pastebin or whatever) tell me and I'll look into fixing it.

Edit: "g." link was auto replaced.

This post has been edited by TeaAndBiscuits: Jan 25 2017, 14:29
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 11 2018, 03:26
Post #9
musterm4x



Casual Poster
***
Group: Members
Posts: 153
Joined: 18-June 13
Level 245 (Godslayer)


This script looks great. I haven't used it much yet since I'm not a heavy expunger/renamer.

It seems E-Hentai links gallery URLs now by default. Resulting in messy links if the script is running. For example:
(IMG:[i.imgur.com] https://i.imgur.com/9vkcUX7.png)

I've taken the liberty to fix this and replicate the target attributes in the rename entry headers.
Most browsers will then open the link in a new tab/window. If you don't like that, just remove from line 22:
CODE
target=\"g$1\"

It's a dirty patch, but it works (mostly).
Attached File  RETH_1.1.2.1.user.js.txt ( 22.79k ) Number of downloads: 8


Diff for the curious:
Attached File  RETH_1.1.2.1.user.js.diff.txt ( 1.74k ) Number of downloads: 5
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 29th April 2024 - 19:36