3 Beiträge / 0 neu
Letzter Beitrag
#1 2019-02-17 12:22

Iwara custom sort userscript

I wrote a userscript to sort teaser images.

https://greasyfork.org/en/scripts/377540-iwara-custom-sort-extension

Screenshot (with another userscript "Iwara Extension Script" installed):

Can sort teaser images on /videos, /images, /subscriptions, /users, and sidebars using a customizable sort function.

Can also load multiple pages at once, additional videos will be dynamically loaded to the page with the sorted order
, and the pagination links at the bottom of a page will change their URL and presentation accordingly.

Can be used together with "Iwara Extension Script", another userscript.

Spicify the custom sort value in the textbox next to the sort button, with following variables (and everything in javascript) available:
likes
views (再生数)
ratio (likes/views)
image (If it's an image :1 or else :0)
gallery (If it's a gallery of multiple images :1 or else :0)
private (If it's privated :1 or else :0)

For example, the default value is '(ratio / (private * 2.5 + 1) + Math.sqrt(likes) / 3000) / (image + 3)'
Math.sqrt is the javascript built-in Square Root function.

Click the "default" button to restore the default value.

The script will remember the setting you used before.

Require a userscript extension competible with Greasemonkey >= 4.0.

Any feedback would be greatly appreciated.

2019-02-18 23:53

sugoi

2019-02-20 18:56

Pretty good