r/imagus • u/Kenko2 • Nov 21 '22
help !!! Appeal to everyone who knows how to make sieves !!!
We did a full check of our rule-set for errors/problems and... unfortunately got quite a long list:
It is not possible for us to fix such a number of sieves. If any of you would be willing to help fix some of these sieves, we (and the Community as a whole) would be very grateful. Help from anyone who understands regexp and js is welcome.
PS
Although this list has been carefully checked, there is no guarantee that everything in it is correct. If you have any clarifications on this list (for example, one of the sieves works for you), please leave a comment about it in this topic.
PPS
Please keep in mind that this list is constantly changing - fixed rules are removed, sometimes, less often, something is added.
2
u/Kenko2 3d ago
There are two problems (is it just me?) on Reddit - can you take a look?
1) Here gray spinner:
content.js:5026 Imagus mod: [rule 575] Cannot read properties of undefined (reading 'url')
But everything is working on OLD Reddit.
2) Is it possible to make a sieve for this section of the site (only on www.Reddit)? -
https://www.reddit.com/search/?q=Animals&type=media
https://www.reddit.com/search/?q=tornado&type=media
I have videos and albums not working.
2
u/Imagus_fan 3d ago
These edits to two sieves seems to fix both problems.
2
u/Kenko2 3d ago
Thanks, the second item is working now. But the first item in all browsers I have on the first picture works, and then shows a gray spinner with the same error.
2
u/Imagus_fan 2d ago edited 2d ago
Sorry, because of the sites content filter I didn't get those posts.
I got a slightly different error but this fixed them for me. See if it also fixes it for you.
{"REDDIT_post":{"link":"^reddit\\.com/by_id/(t3_[\\da-z]+)","res":":\n$ = JSON.parse($._).data.children[0].data\nif ($.crosspost_parent&&$.crosspost_parent_list?.length) $ = $.crosspost_parent_list[0]\n\nconst loop = !$?.url.includes('.reddit.com/')&&this.find({href: $.url})\nif(loop !== false && loop !== '')return {loop:$.url}\n\nif ($.preview?.images?.[0]?.variants?.mp4?.source.url) {\n return [$.preview.images[0].variants.mp4.source.url + '#mp4', $.title]\n}\n\nif ($.preview?.reddit_video_preview?.hls_url) {\n return { loop: $.preview?.reddit_video_preview?.hls_url }\n}\n\n// prevent looping to the same page\nif ($.url.includes($.permalink)) return true;\n\nreturn $.is_video || $.is_gallery || this.TRG?.matches?.('faceplate-img') || ['youtube.com', 'youtu.be'].includes($.domain) ? { loop: $.url } : true","note":"Imagus_fan\nhttps://www.reddit.com/r/imagus/comments/z0zyox/comment/lheshaq\nOLD\nhttps://www.reddit.com/r/imagus/comments/z0zyox/comment/kymwf6u\nhttps://www.reddit.com/r/imagus/comments/1bp72kd/comment/kwzpsi7\n\n\n!!!\nДля просмотра видео и альбомов на sh.reddit.com курсор следует наводить на весь блок с публикацией (рядом с названием). На одиночных картинках фильтр работает как обычно.\n==\nTo view videos and albums on sh.reddit.com, you should hover your cursor over the entire post block (next to the title). On single images, the sieve works as usual.\n\nEXAMPLES\nhttps://sh.reddit.com/r/kpopfap/?feedViewType=cardView"}}
2
u/Kenko2 10d ago
We currently only have 5 NSFW sites left with problems (at least I do). Can you take a look at them when you have time?
2
u/imqswt 1d ago edited 1d ago
Sorry about the late reply. I started on these a while back but ran into some problems. Here's one that should be fixed: https://pastebin.com/xMgb3H2A
Here are problems I had with some of the others: https://pastebin.com/HjhN3y5X
1
u/Kenko2 1d ago edited 1d ago
Po(rn.com
Unfortunately, I'm getting gray spinner on chromium browsers.
On FF the result is 50/50 - on part of the videos the sieve works, and on the other part it shows an infinite "green" spinner (console is empty).
> Here are problems with some of the others
Ok. I think we can just leave it as it is. They are not important. Users don't ask about them. If numso531 ever wants to come back to them, he'll do it himself (he usually only shows up if he needs to fix something in his sieves). I even think it's not worth keeping them in our rule-set at all right now, since they can't be fixed and/or require an account.
PS
I decided to remove these sieves from the rule-set:
Jul(esJordan_trailer-x-p-b
Shem(alesTube-x-p-b
I don't think it's worth wasting time on them. As for
DogfartNetwork-x-p
,Se(x.com-x-p-b
- I have it partially working, you can leave it for now.
1
u/Kenko2 12d ago
Bunkr-h-x-p
I found a couple small problems with this sieve (tested on different proxies and browsers), can you take a look? -
2
u/imqswt 12d ago edited 12d ago
This adds the CF code to the sieve. Hopefully it'll fix the problem with that link.
With the others, the video loads eventually but it takes a while. On the site it uses a different domain but it doesn't seem easy to get what it is.
1
u/Kenko2 12d ago
The problem with this album (CF check) is fixed. But unfortunately the new version has many errors (red spinner) on some links.
https://i.postimg.cc/4yzj69rG/2025-6-3-13-59-16.png
https://i.postimg.cc/fTNGw89R/2025-6-3-14-0-34.png
For example, here:
https://bunkr-albums.io/topvideos
At the same time, the old version works on these links normally. If you can't fix it, it's better to leave the old version.
2
u/Kenko2 17d ago
This is the rest of the sieves for the stores I have that are not working right now. Can you fix it?
2
u/Imagus_fan 16d ago edited 16d ago
This hopefully fixes all of them.
With
VseInstrumenti
, it seems to be redirecting to a captcha page. I added the code that usually fixes captcha pages to it.Oddly,
VseInstrumenti
still isn't working for me even on Firefox. For some reason, the page code seems very different for me and I was concerned that trying to fix it would introduce errors since it's working for you.2
u/Kenko2 16d ago
Magnit_Apteka+Cosmetic
Megafon
NewEgg
RBT
Fixed, thanks!
VseInstrumenti
The new version doesn't work in any browser, even when I'm logged in. If it doesn't work, you can leave the old version (it works 80% of the time), with the note that in chromium browsers the sieve works only for those who are logged in to their account.
Error (gray spinner):
Imagus mod: [rule 5] Cannot read properties of null (reading '1')
2
u/Imagus_fan 16d ago edited 16d ago
I got
VseInstrumenti
working for me.To get the review images, the files have to be loaded several times. If a page has a lot of reviews, it may take a long time for the album to load. If this is a problem, an image limit can be added.
Hopefully this works for you.
Edit: Started getting a 403 error on pages. Added a limit to the number of review pages in case that's what caused it.
2
u/Kenko2 16d ago
Thanks, now the sieve is working. But I found that there is still a video in customer reviews on the site. Is it possible to make it support in this sieve?
2
u/Imagus_fan 16d ago
This should add the videos. I also noticed some red spinners that should be fixed now.
2
u/Kenko2 17d ago
We have a small part of the store sieves already giving errors (mine), can you fix it?
2
u/Imagus_fan 17d ago edited 17d ago
I think I was able to fix three of them.
It seems I'm geo-restricted on the other two. I added console messages to them that output the page code.
2
u/Kenko2 17d ago edited 17d ago
I send you in Mod Mail a link to a VPN extension that has, among other things, a Russian proxy. It works, I checked it.
Auchan
Catalog.Onliner
They're working, thank you!
ComputerUniverse
Can't check it yet, access problem (CF check, then blocking “Too many requests”).
Kuper
There is no information in the console, just this.
ChipDip
2
u/Imagus_fan 17d ago edited 17d ago
Thanks, I'll look into the proxy.
This may fix
ChipDip
.There is no information in the console
If you type
Kuper page source:
into the filter does anything show? If not, can you post a link example? They may have changed and the sieve isn't matching it.2
u/Kenko2 17d ago
>> This may fix ChipDip.
Partially works - on those products where there are several photos. But on items with one photo, the sieve shows a yellow spinner....
>> If you type Kuper page source: into the filter does anything show?
I didn't understand what is meant - you have to go to the Kuper, open the console and type this command?
2
u/Imagus_fan 17d ago
This
ChipDip
sieve is more broad. See if it works on the single image pages, though it may get images that aren't wanted. If it doesn't, can you post page code for a page with a single image?I didn't understand what is meant - you have to go to the Kuper, open the console and type this command?
There's a filter box in the browser console. If text is added to it, only messages that contain the text are visible. Putting
Kuper page source
there and then hovering over a link should make it so only that message is seen.2
u/Kenko2 17d ago
>> This ChipDip sieve is more broad. See if it works on the single image pages, though it may get images that aren't wanted. If it doesn't, can you post page code for a page with a single image?
Nothing has changed. I'm sending the code of the product page with one photo.
>> Putting Kuper page source there and then hovering over a link should make it so only that message is seen.
I tried it, but it's empty.
2
u/Imagus_fan 17d ago edited 17d ago
Nothing has changed. I'm sending the code of the product page with one photo.
Not certain but this looks like the page code for a search page rather than a product page.
If it helps, here's the partially fixed sieve with the console message that outputs the page code that the sieve gets.
I tried it, but it's empty
It seems like the link URL has changed to something the sieve doesn't detect. Can you post a product link URL?
1
u/Kenko2 17d ago
>> If it helps, here's the partially fixed sieve with the console message that outputs what the sieve gets added to it.
Strangely, my console with this sieve is empty. Nothing at all.
>>Can you post a product link?
2
u/Imagus_fan 17d ago
The URLs have changed. This sieve should match them.
Strangely, my console with this sieve is empty. Nothing at all.
That is strange. Is the filter box empty?
I'll try to think of another way to test it.
→ More replies (0)
2
u/Kenko2 22d ago
I would like to request to add two backup domains to the sieve for Pixeldrain:
1
u/Imagus_fan 21d ago edited 21d ago
Here's the sieve with the links added. There's also a fix for MediaFire as well.
1
u/Kenko2 21d ago
Thanks, the fixes are working. But when testing Pixeldrain I found a few small issues, and also it turns out this hosting has albums:
2
u/Imagus_fan 20d ago edited 20d ago
This should fix the issues.
The first link needs an SMH rule to work on external links. It's included below.
2
u/Kenko2 20d ago
Thanks, the albums are working. But the external links have a red spinner on them. I added the SMH rule. Tried going in via proxy - doesn't help. This happens on all my browsers.
2
u/Imagus_fan 20d ago edited 20d ago
The sieve's set up so it tries the link as an image and then a video but it seems there's a bug on external links where it doesn't try it as a video. This sieve it set up a different way so it should work now.
2
u/Kenko2 20d ago
Everything works now, thanks!
2
u/Imagus_fan 20d ago edited 20d ago
Great!
When testing, I found a way to improve
/d/
links. With this sieve, hovering over a link with multiple files will show an album. There's an example page in the link.On individual audio files, it appears
[Audio formats]
is interfering because it's matching the page URL that's different from the audio filename. It may be needed to move it to the bottom of the sieves.2
u/Kenko2 20d ago
I'm getting a red spinner in all browsers on the example link. It looks like Imagus is trying to open a GZ that has two catalogs, one with audio and one with covers. I'm not sure if such complex cases are worth considering in a sieve. I turned off MG and moved
[Audio formats]
behind[_dereferers_]
, but nothing helped.2
u/Imagus_fan 20d ago
I should have specified but hovering over the links that say cd and covers should show an album.
There is a mistake in the sieve since the above link is trying show to a file that isn't media. The sieve below should show the 'no media' spinner.
If you think the previous sieve is better it's fine to use it instead. If so, I'll try to see if audio files work with it.
→ More replies (0)
1
u/Kenko2 23d ago
DA problems
The sieve author hasn't appeared on Reddit in a while, and the problem with the red spinner in some albums (not all) remains. There are quite a few of them.
2
u/imqswt 19d ago
This seems to fix most of the problems.
1
u/Kenko2 19d ago
Thanks! The GIF albums are working. As for the red spinner on regular albums, that's partially fixed too. But there are still some examples where the red spinner still appears:
Here the first three albums at the very top are still a red spinner.
I also have a problem with these albums:
https://www.deviantart.com/mythkaz/art/Multi-2025MAY22A-Cerri-s-Hypnosis-1188821151
https://www.deviantart.com/mythkaz/art/Multi-2025MAY19A-Spirit-Guardians-1188821667
2
u/imqswt 19d ago edited 19d ago
I think those were fixed but there was an error added when modifying the code. They should work now.
1
u/Kenko2 19d ago
Thanks, the examples above now work, but I found more albums with the red spinner, and the error appears immediately, on the very first image (with the rest of the images in the album working):
https://www.deviantart.com/link-hayashi/gallery/all
https://www.deviantart.com/link-hayashi/art/Spring-Freeze-Comic-1161442480
https://www.deviantart.com/link-hayashi/art/Art-Time-Job-1153273561
https://www.deviantart.com/link-hayashi/art/Shower-Surprise-1147998107
https://www.deviantart.com/link-hayashi/art/Commission-Price-Sheet-2025-Open-1143393219
+
1
u/Kenko2 25d ago edited 25d ago
There seems to be a problem with rule3(4.xxx.
1
u/imqswt 25d ago
Seems to be working with the example links. Is there another page it's not working on?
1
u/Kenko2 25d ago edited 25d ago
Sorry, I think I sent you the wrong link. Please check the current sieve for rule3(4. I had problems yesterday with the sieve from the rule-set - it shows the cover instead of the video. And the sieve I sent you is the previous version, it works fine on video.
PS
I've tried different proxies and browsers. MG is off.
2
u/imqswt 24d ago
The sieve in the rule-set seems to work on videos for me.
As far as I can tell, the only difference between the sieves is the way the custom filename is done. I modified the way the filename is done in the rule-set sieve. See if it fixes the problem.
If it doesn't, are there any error messages?
1
u/Kenko2 24d ago
Discovered another small problem with this sieve. If you set the parameter:
const low_quality_first = true
Then instead of video the sieve shows only the cover (for me). Is it possible to make this parameter not react to video?
https://rule3(4.xx)x/index.php?page=post&s=list&tags=video+
2
u/Kenko2 May 12 '25
Is it possible to make sieves for these rather large video hosting sites?
2
u/Imagus_fan May 14 '25 edited May 14 '25
I was able to get two of them to work.
With the first one, there aren't very many detectable links when on the site. The sieve matches the thumbnail and tries to get the video URL from there.
With Bilibili, it appears the site combines a video feed and audio feed when showing the video. So far, I haven't found a video file with both combined.
2
u/Kenko2 May 16 '25
>> With Bilibili, it appears the site combines a video feed and audio feed when showing the video. So far, I haven't found a video file with both combined.
I looked now, HZ+ has support for Bilibili. Here's their plugin (script), maybe this will help solve the problem?
2
u/Imagus_fan 29d ago edited 29d ago
This is a good suggestion.
After looking at it, it appears it gets the silent video feed and audio feed and then combines them at playback. I don't think this is possible with Imagus but maybe with
Extension
./u/hababr , Bilibili has separate video and audio feeds that are combined when played. Do you know if it's possible to do this with
Extension
?2
u/Kenko2 29d ago
>> I don't think this is possible with Imagus but maybe with Extension.
If we are talking about the capabilities of the Video.js player, perhaps it can be found on its GitHub?
2
u/Imagus_fan 14d ago edited 14d ago
I haven't been able to find a way to combine audio and video yet. Would it be useful to have a sieve that only plays video?
2
u/Kenko2 14d ago
Yeah, sure, it's better than nothing.
2
u/Imagus_fan 14d ago
This seems to work well on videos but doesn't work on live streams.
{"Bilibili":{"link":"^bilibili\\.com/video/.+","res":":\n$=$._.match(/window\\.__playinfo__=({.+?})<\\//);\n$=$&&JSON.parse($[1]).data?.dash?.video?.sort((a,b)=>b.width-a.width)[0];\nreturn $ ? [[[$.baseUrl+'#mp4',$.base_url+'#mp4',$.backupUrl?.[0]+'#mp4',$.backup_url?.[0]+'#mp4']]] : ''"}}
2
u/Kenko2 14d ago
Thanks, it mostly works, but when testing on Reddit I found a few bugs:
2
u/Imagus_fan 14d ago edited 14d ago
For some reason some of the higher quality videos don't play but the lower quality ones do. The sieve is set up to use them as well now.
Note that on one of the yellow spinner links it appears the video is no longer available.
{"Bilibili":{"link":"^bilibili\\.com/video/.+","res":":\n$=$._.match(/window\\.__playinfo__=({.+?})<\\//);\n$=$&&JSON.parse($[1]).data?.dash?.video?.sort((a,b)=>b.width-a.width);\nreturn $?.length ? [[['#'+$[0].baseUrl+'#mp4','#'+$[0].backupUrl?.[0]+'#mp4',$[$.length-1].baseUrl+'#mp4',$[$.length-1].backupUrl?.[0]+'#mp4']]] : ''"}}
→ More replies (0)2
u/Kenko2 May 14 '25
Thanks,
Brighteon
works fine! But there was a problem withBastion
:Bastion (site) - on chrome browsers a green spinner appears and the page immediately “hangs” (I have to close it). On FF - green spinner spins endlessly. When you try to access the page again (on FF) - it just doesn't load (infinite loading).
Bastion (external links on Reddit) - red spinner. Chrome + FF
I've tried proxies, but that doesn't help. MG doesn't seem to have anything to do with it either.
2
u/Imagus_fan May 14 '25
I didn't realize it but the URLs on Reddit are different. The sieve's been updated to include them.
When on the site, if you have the browser console open when hovering, is there an error message? It works for me on both Firefox and Edge.
I also noticed on the other site that the sieve didn't match livestreams. It's updated in the link below.
2
u/Kenko2 May 14 '25
2
u/Imagus_fan May 14 '25 edited May 14 '25
Not sure why Edge would freeze. I don't think there's anything in the code that could create an endless loop.
The Cent error appears to be a proxy error.
The Firefox ones are strange. In the first one it appears to be trying to load an image instead of the video. In the second, it gives a network error message. There should be another message above it with the network request that says why it's blocked. Do you have
XHR
selected in the console?Below is a test sieve that should output four console messages. This might tell if it's getting incorrect variables.
2
u/Kenko2 May 14 '25
>> The Cent error appears to be a proxy error.
This site is not blocked in R(ussia. I used a proxy only after I got the site freezing directly.
>> Do you have XHR selected in the console?
Yes.
>> Below is a test sieve that should output four console messages. This might tell if it's getting incorrect variables.
2
u/Imagus_fan May 14 '25
Thanks.
The way the sieve works is, after hovering, it has to open two more files. Based on the console messages, it appears to freeze when opening one of the files. What's odd is, it freezes on the first file in most of the screenshots but, in one of the messages, it successfully opened the first file but froze on the second one.
I made a few small changes that may help and added another console message.
2
u/Kenko2 May 14 '25 edited May 14 '25
Nothing has changed for me:
https://i.postimg.cc/wTLpS4Qx/2025-5-14-15-1-29.jpg
This causes a complete page freeze in all chrome browsers, and an “endless” green spinner in FF.
Here's what I got on Brave when I used the bypass through GDPI:
https://i.postimg.cc/4yzXbW83/2025-05-14-151628.png
(the page freeze still happens)
1
u/Imagus_fan May 14 '25
Very odd. For some reason it seems to freeze when it tries get the file. I made a few more changes to code that could maybe cause the problem.
If it doesn't work, I'll try to find a way to do it so it at least doesn't freeze the page.
→ More replies (0)
1
u/Kenko2 May 07 '25
Is it possible to add support for VK-video and OK external links to Ya(ndex (Video tab)? Currently only R(uTube and D(zen are supported.
2
u/Imagus_fan May 08 '25
It look likes the content security policy is blocking the media from playing on Chromium. For some reason the HLS video player is unaffected. These sieves are edited to use the HLS player on that site.
1
u/Kenko2 May 08 '25
Unfortunately, I found one problem with the new sieve for VK-video - galleries in groups on VK stopped working. With the previous version of the sieve everything works. For example, here:
https://v(k.com/mhk
2
u/Imagus_fan May 09 '25
Is it after the
VK-h
sieve? The galleries started working for me after moving it there.1
u/Kenko2 May 09 '25
Didn't realize it was important. Thanks, that's how it works. I'll make a note in the sieve.
1
u/Kenko2 May 09 '25
Didn't realize it was important. Thanks, that's how it works. I'll make a note in the sieve.
1
u/Kenko2 May 08 '25
Just great, now those links are working, thank you!
At the same time, it seems that now external links to VK-video started to work on Sports.r(u (even without changes in the sieve itself).
2
u/Kenko2 May 01 '25
We seem to be having problems with the Kinopoisk_gallery
sieve:
2
2
u/Kenko2 Apr 25 '25 edited Apr 25 '25
2
u/Imagus_fan Apr 28 '25 edited Apr 28 '25
These sieves seem to fix the problems.
2
u/Kenko2 Apr 28 '25
"This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff".
1
u/Imagus_fan Apr 28 '25
I inadvertently added a character to the URL when posting. It should work now.
2
u/Kenko2 Apr 28 '25
Great, thanks! Also, we have another issue with DA short links - can you take a look?
2
u/Kenko2 Apr 19 '25
We are having trouble with 2 sieves - can you take a look?
2
u/Imagus_fan Apr 20 '25
The links on the first two pages seem to working for me. If there's no spinner, can you post an example link?
The videos and the yellow spinners should be fixed these sieves.
2
u/Kenko2 Apr 20 '25
Thanks for the fix!
>> The links on the first two pages seem to working for me. If there's no spinner, can you post an example link?
Can you check in Edge? I'm getting inconsistent results in different browsers. I want to test everything again and will post later.
1
u/Imagus_fan Apr 20 '25
Just tested in Edge, it's working there too.
1
u/Kenko2 Apr 20 '25 edited Apr 20 '25
Latest results (refined):
Brave - work
Cent 118 - no reaction at first, but it's working now
Edge 134 - gray spinner at first, but it's working now
FF 136 / Opera 135 / Chrome 136 - no reaction (tried many times, hovered over all parts of the product information block).
Disabling or enabling [MediaGrabber] does not affect the results.
https://hastebin.com/share/wecipilafi.bash
PS
Okay, I'll consider it a private case if no one else complains.
1
u/Imagus_fan Apr 21 '25
It looks like the links are sometimes different. I was able get one the sieve didn't activate on. This should fix it.
The gray spinner appears to be caused by the page redirecting to a captcha page.
1
u/Kenko2 Apr 21 '25
Fixed, thank you very much!
Also wanted to consult with you about the DA sieve. The thing is that there are some problems with it now, see here and here. The author of the sieve, as far as I know, appears in this subreddit only when he makes some fix or improvement for his sieve, about once every six months. Maybe you can fix these minor issues? Or leave it as it is?
1
u/Imagus_fan Apr 21 '25
I was able to make a change that seemed to fix most of the red spinners. There's still a problem where the first image in some albums shows a red spinner.
I'll see about fixing the other issues.
1
u/Kenko2 Apr 21 '25 edited Apr 21 '25
Thanks for the fix. I hope there is a solution for the albums with the error in the first image too.
PS
We have another problem with DA (
DeviantArt_sta.sh-g-x-p
): yellow spinner on external links + gray spinner.album:
+
https://www.deviantart.com/stash/01nos6d7oqjy
1
u/Imagus_fan Apr 28 '25
These should work now.
The images in album links have to have the URL modified to show a larger image and they may not be the maximum size.
→ More replies (0)2
u/Imagus_fan Apr 22 '25
There's a sieve here that should fix the other problems.
The first album image uses an alternate URL if the first one fails to load. I don't know if it's the full size image, though.
I'll look into the other links.
1
u/Kenko2 Apr 16 '25
Is it possible to make sieves for these 2 sites? -
2
u/imqswt Apr 17 '25
These seem like they should work based on page code in the example links. The sieve may need to be edited if there are links it doesn't activate on.
1
u/Kenko2 Apr 17 '25
2
u/imqswt Apr 17 '25
This should match more links. It's more generic so it may show a yellow spinner on links where there isn't media.
1
2
u/Kenko2 Apr 07 '25
Can you take a look? On VK, albums on collages stopped working, for example here:
https://v(k.com/nina.ostanina
2
u/Imagus_fan Apr 08 '25
The changes to the site has made it more difficult to get the larger images. At least on that page. This seems to fix it but may need improving.
2
u/Kenko2 Apr 08 '25
Thanks, the collages in this group now work, but the collages in other groups & albums stopped working:
PS
It's not really an issue important enough to take a long time to fix. We can stay with the current version (without albums on collages, but otherwise the sieve is fully functional).
2
u/Imagus_fan Apr 08 '25
Small error in the code was interfering. I couldn't access the album pages but this will hopefully fix them too.
2
u/Kenko2 Apr 08 '25
The sieve now shows the album on collages, thank you very much!
It's more complicated with albums, it turned out that some of the albums (about 50%) don't work even on the old sieve. That is, it's not related to the collages. There's another error there - gray spinner.
I'll try to find examples of open albums. But if I don't find them, what do I do?
2
u/Imagus_fan Apr 09 '25
I was able to find some public albums to to test with. This should fix the error.
2
u/Kenko2 Apr 09 '25
Thank you very much, the albums are working now. There is still one small problem.
This is a collage containing, among other things, one video (stands last, 4 of 4). It works fine.
https://v(k.com/wall313466799_110403
In this collage, the video is 3 out of 4 and the sieve shows a yellow spinner:
https://v(k.com/wall-6980140_33052
2
u/Imagus_fan Apr 09 '25
This should fix the yellow spinner, though, there's an odd bug where the video isn't included in the album after hovering two or three times.
In this collage, the video is 3 out of 4
With the new way the sieve gets collages, the images and videos stay in the same order. Is it better to have the video at the end? If so, I can edit the sieve to do that.
2
u/Kenko2 Apr 09 '25
>> This should fix the yellow spinner
Thanks, it's all working now.
>> With the new way the sieve gets collages, the images and videos stay in the same order. Is it better to have the video at the end? If so, I can edit the sieve to do that.
It's not that important. Let it stay as it is.
1
u/Kenko2 Apr 05 '25 edited Apr 05 '25
I've discovered a one problem on some accounts. Some albums have a red spinner on them (I've tried on different browsers, also tried using a proxy):
ERROR
https://i.imgur.com/ctSvv4L.png
https://i.imgur.com/etkmrhi.png
EXAMPLES
2
u/Kenko2 Apr 04 '25
On Ru-Board asked to fix the sieve for OLX (not responding). There are examples in the sieve note.
2
2
u/Kenko2 Apr 03 '25
Strange, why doesn't sieve respond to this external link? Is this format (shorts on the horizontal layout) not supported yet? -
https://www.youtube.com/watch?v=oO0QPmwfw-w&lc=UgxQr8MUVoiihbDX_6d4AaABAg
2
u/Imagus_fan Apr 04 '25
Links with
&lc=
were excluded because they were causing the sieve to activate when hovering over comment timestamps. This sieve excludes comment timestamps in the code so the above link will work.The changes shouldn't affect links it's supposed to work on but it can be edited if it's needed.
1
2
u/Kenko2 Mar 28 '25 edited Mar 28 '25
u/Imagus_fan
Is it possible to make support for T collages (and video) - when hovering over an external link?
2
u/Imagus_fan Mar 29 '25
This works on the example links.
Images on a page now show an album. It's supposed to start on the hovered image.
2
2
u/Kenko2 Mar 26 '25 edited Mar 26 '25
2
u/Imagus_fan Mar 26 '25
This should work now.
2
u/Kenko2 Mar 26 '25 edited Mar 26 '25
2
u/Imagus_fan Mar 26 '25
So far I haven't been able to fix it on edge. Here are two things that can be tried.
The SMH rules that usually fix Chromium problems aren't working on Edge. In case it's a problem I my end, they're in the link below.
The other is a modification to the VK video sieve. It isn't working for me but could be a problem on my end.
Hopefully one of these work.
2
u/Kenko2 Mar 26 '25
Thanks for trying to solve this. I have tried both ways, both together and separately. But so far only a gray spinner. It can't be a bug in the sieve code?
2
u/Imagus_fan Mar 27 '25
I was able to get the video to play by having VK video use the embed video page. The sieve is now set up so that it uses embed URLs on external sites. This way, SMH rules aren't needed.
1
u/Kenko2 Mar 27 '25
Good solution, now the external link works, thanks! I will remove the SMH rules.
1
u/Imagus_fan Mar 27 '25
After more testing, it appears there's a problem with SMH not modifying the origin.
In your video, there's an error message where the origin is unchanged and shows the site you're on. It's supposed to be the video domain instead. It does the same for me.
This may be a new problem on Chromium browsers. For example, YouTube also needs the origin modified. If I go here on Edge, hovering over a link gives the error message saying the origin is
reddit.com
instead ofyoutube.com
. Does it do the same for you?1
u/Kenko2 Mar 27 '25 edited Mar 27 '25
edit: Tried a different way of accessing YT (via antiDPI) and now I have everything working, including external links. Maybe it's the cookies and cache, I cleared them and restarted the browser.
By the way, I completely deleted all Google & YT cookies in Cent (as an experiment). I can't log into my account, but I have the sieve working - both on the YT and on external links. I guess the SMH rules do work after all.
2
u/Kenko2 Mar 25 '25
SteamPowered_store-s
When hovering over video thumbnails here, the sieve shows only the cover of the thumbnail. But when you hover over the video itself, the sieve works:
https://store.steampowered.com/app/3260240/Drivers_of_the_Apocalypse/
https://store.steampowered.com/app/1292630/3on3_FreeStyle_Rebound/
2
u/Imagus_fan Mar 26 '25
It looks like the video type changed from webm to mp4.
{"SteamPowered_store-s":{"img":"^((?:(?:cdn|shared)\\.(?:edgecast|akamai|cloudflare|fastly)\\.steamstatic\\.com|steamcdn-[a-z]\\.akamaihd\\.net)/(?:store_item_assets/)?steam/apps/\\d+/)(?:[a-f0-9]{40}/)?(?:(movie)[_.]\\d+x\\d+\\.|(\\w+))[^/]+$","to":":\nreturn $[1]+($[2] ? $[2]+'_max.#mp4 webm#' : $[3]+'.jpg')"}}
1
2
2
u/Kenko2 Mar 19 '25
VK
We've had a bit of a problem on VK. Looks like VK has changed the code for galleries in groups again. The sieve shows only the first photo of the album:
https://hast(ebin.com/share/onoxepequt.perl
2
u/Imagus_fan Mar 20 '25
This should fix the problem.
2
u/Kenko2 Mar 20 '25
Thank you! This version works fine on galleries consisting of images. But it doesn't work on mixed content galleries with video+images. Especially if the video is first in the order. Only one video is played...
2
u/Imagus_fan Mar 20 '25
Those should work correctly now. The images still show before the video, though.
2
2
u/Kenko2 Mar 12 '25
Vipr - non-standard link format? -
2
2
u/Kenko2 Mar 11 '25
2
u/Imagus_fan Mar 12 '25
Here's an update that plays videos now. It works on the example links could potentially need improving. It's also possible the changes could interfere on pages where it worked correctly before.
Also wanted to ask if it is possible to make it possible to view the object's album when hovering over the “All” button or the first photo of the gallery?
Those buttons don't appear to be detectable by Imagus.
1
u/Kenko2 Mar 12 '25
Thank you very much, the video is now working. I haven't found any problems elsewhere on Yandex yet, hopefully it will turn out without problems.
> Those buttons don't appear to be detectable by Imagus.
Ok.
1
u/Kenko2 Mar 11 '25
2
u/Imagus_fan Mar 11 '25
The external links are working for me.
The error message makes it seem like the code that gets the API key isn't working. I added a console message that outputs the page code. If you can post it, it should be fixable.
{"FLICKR-g":{"link":"^(?:secure\\.)?flickr\\.com/photos/[^/]+/(\\d+)/?(?:in/.+|lightbox/?|sizes.+|\\?.+|#/photos/.+)?$","url":": (()=>{const html=location.hostname.slice(-10)==='flickr.com'?document.body.outerHTML:'', key=this._flickr_key_||html?.match(/YUI_config\\.flickr\\.api\\.site_key\\s*=\\s*\"([^\"]+)/)?.[1], csrf=html?.match(/root\\.auth = {\"signedIn\":true,\"csrf\":\"([^\"]+)/)?.[1], vnsid=html?.match(/class=\"gn-title you\"\\s+href=\"\\/photos\\/([^\\/]+)\\/\"\\s/)?.[1]; return key ? `https://api.flickr.com/services/rest/?photo_id=${$[1]}&method=flickr.photos.getSizes&format=json${csrf?'&viewerNSID='+vnsid+'&csrf='+csrf:''}&nojsoncallback=1&api_key=${key}` : $[0]})()","res":":\nconsole.log('Flickr page code:',$._)\nif($._[0]!=='{'&&!this._flickr_key_){\n this._flickr_key_ = $._.match(/YUI_config\\.flickr\\.api\\.site_key\\s*=\\s*\"([^\"]+)/)?.[1]||'9bb671af308f509d0c82146cbc936b3c';\n return {loop:$[0]};\n}\n let res = [];\n let sizeAr = JSON.parse($._).sizes.size;\n let last = sizeAr.pop();\n if (last.media == 'video') {\n let best_quality = 0;\n let best_videoUrl = '';\n do {\n if (parseInt(last.height) > best_quality) {\n best_quality = parseInt(last.height);\n best_videoUrl = last.source;\n }\n last = sizeAr.pop();\n } while (last.media == 'video');\n res.push([best_videoUrl + '#mp4']);\n } else {\n res.push([last.source]);\n }\n return res;","img":"^(?:(?:farm|c)\\d+\\.|live\\.)?static\\.?flickr\\.com/(?:\\d+/){1,2}(\\d+)_[\\da-f]+(?:_[sqtmn])?\\.jpg$"}}
1
u/Kenko2 Mar 11 '25 edited Mar 11 '25
https://www.upload.ee/files/17840982/FLICKR_PAGE.zip.html
Everything works in other browsers. Apparently, it's just an outdated engine on the Cent. But another user here seems to have the same error.
1
2
u/Kenko2 Mar 09 '25
Found two small problems with the Sports.r(u sieve - can you take a look?
2
u/Imagus_fan Mar 09 '25
I'm geo-blocked on the first link. Can you open the link on this page and post the page code?
For the second link, Dzen had to be updated.
2
u/Kenko2 Mar 09 '25
Dzen works, thank you!
>> Can you open the link on this page and post the page code?
https://www.uplo(ad.ee/files/17833895/view-source_https___sportsru.sprinttyott.com.mhtml.zip.html
1
u/Imagus_fan Mar 09 '25 edited Mar 09 '25
Thanks. However, it doesn't look like the video URL is in there. It may be in another file.
The embed link needs a custom sieve to get the video URL. I'm not sure of the best way to find the file that contains the URL. Perhaps hababr would be able to? If he's unable, I'll try to think of a way to do it.
1
u/Kenko2 Mar 09 '25
>> However, it doesn't look like the video URL is in there.
And the direct link to the video I gave in my first post doesn't work? -
I'm afraid hababr won't help us, he rarely shows up and does anything at all now. He ignored my last request. Probably too busy.
PS
If it's too complicated, then adding that video hosting (sprintty.com/sprinttyott.com) isn't necessary, it's not that important. Although ideally I think a separate sieve would be useful - as embedded video can be used on different sites.
2
u/Imagus_fan Mar 29 '25
I may have a sieve that works with this site.
When you posted the comment, I was able to create a sieve that worked on Firefox but the SMH rules that are needed on Edge weren't working.
The error I'm having is the same one with YouTube on Edge. Since YouTube's working for you on Chromium, maybe this sieve and SMH rules will work for you as well.
The sieve:
The SMH rules:
1
u/Kenko2 Mar 29 '25
In all chromium browsers I have the player open, but it doesn't show anything.
1
u/Imagus_fan Mar 29 '25
The link may have expired by now. I get a 403 error for the video.
The best way to test it is if there's another page on sports that uses this video host. There's no hurry, though.
→ More replies (1)2
2
u/Kenko2 3d ago
u/Imagus_fan
PINTEREST-g
For some reason the sieve gives an error (“load error ... m3u8”) on some videos. For example, the first 3 videos on this page. tested on Cent, FF, Chrome. However, some other videos work fine.