/r/imagus
Browser extension that shows full-size images/videos when you hover over thumbnails or links.
Updating your rules
Updating the rules now needs to be done only from here: SIEVES
If you won't bother providing the following information, don't expect any response.
How to import a rule
Options / Sieve / import button (↓) / copy-paste the rule that you were given into the text-box and press the From text button / Save. If the rule already exists, you have to tick the "Replace existing data" checkbox before saving.
How to create a rule
Adding your own rules can be done at Options / Sieve by clicking the +
button, fill the input boxes and finally hit Save. To make rules you need to know at least Regular Expressions and HTML, and for more complicated situations you need JavaScript. A weak explanation about the parameters can be found here.
/r/imagus
Idk if its a version thing or what: just wanted to ask before I start troubleshooting in other ways. (Is there a hotkey to enable/disable it that's I'm not aware of and I might have pressed accidentally?)
I'm on firefox btw.
Anyway to remove the yellow highlighted album page number when scrolling through albums? It is rather annoying, thanks!
thumbnails that were 1080x1920 are now 1280x720 in the pop-up
Just returned from a holiday and found the Daily Mail website is no longer working for me (Imagus mod v0.10.15) I've updated to the latest sieves but still no good. Suspect it's something they've done their end but hovering over any of the articles now gives an amber spinner...
switched to fedora and now long press right mouse button doesn't work, it just opens context menu ant the moment of right mouse down.
It was already intermittently working on linux mint, but now it just never works
any ideas?
Gifs hosted with preview.redd.it display a grey spinning animation when hovered on the main Reddit (www.reddit.com). Examples can be viewed in r/gifs like for example this post https://new.reddit.com/r/gifs/comments/1f73agj/falling_through_reddit_oc/ .
This issue didn't happen in the now deprecated new.reddit.com because the gif's url would be displayed beside the title. You can temporally go back to the new reddit UI by going here https://new.reddit.com/user/YOURUSERNAME/followers/.
I'm using the Brave Browser in version 1.69.153 with Imagus mod v0.10.15 and the latest sieves update.
I'm watching some clips from /r/soccer in fullscreen and imagus will play it in the background if my cursor hover it, is there a way to stop this? I'm using Imagus mod and Brave.
When you looked at an actors credits you used to be able to hover over the movie poster and it would show it larger.
Or did I just imagine that?
I have almost the same issue as I did 3 years ago where I can't hover over titles in my feed, except this time it's not working for videos either. It only works on the thumbnail - but even then the links will stay blue - unless it's a video for some reason.
I've updated sieves and SMH but it's still not working. I'm using firefox.
{"PINTEREST":{"useimg":1,"link":"^(?:[a-z]{2}\\.)?pinterest(?:\\.[a-z]{2,3}){1,2}/pin/[\\w-]+/$","ci":3,"loop":3,"res":":\nconst re =\n /<script data-relay-response=\"true\" type=\"application\\/json\">(?<data>.+?)<\\/script>/g;\nconst m = [...$._.matchAll(re)];\n\nif (!m.length) {\n console.log('Failed to fetch data');\n console.log('Post on /r/imagus');\n return;\n}\n\nconst data = JSON.parse(m[0].groups.data)?.response?.data?.v3GetPinQuery?.data;\nif (!data) {\n console.log('Pinterest object likely changed.');\n console.log('Post on /r/imagus');\n return;\n}\n\nconst title = data?.gridTitle || \"\";\nconst videoObj = data?.videos?.videoList || {};\nconst videoList = Object.keys(videoObj)\n .filter(key => videoObj[key].url)\n .map(key => ({\n url: videoObj[key].url,\n width: videoObj[key].width,\n height: videoObj[key].height,\n }))\n .filter(vid => vid.url.endsWith('.mp4'))\n .sort((a, b) => b.height - a.height);\nconst img = data?.imageSpec_orig?.url;\n\nconst returnValue = (videoList.length && videoList[0].url) || img;\nreturn returnValue && [returnValue, title];\n","img":"^((?:i|(?:s-)?media-c(?:dn|ache\\D*)\\d*)\\.pin(?:terest|img)\\.com/)(?:(upload/\\d+_[^\\W_]{8})_[bft]|(?!550)\\d+x?\\d*(?:_[^/]+)?/|(avatars/[^.]+[_-]\\d+)(?:_(?!600)[^.]+)?(?=\\.))(.*)","to":":\n// check if this is a video pin\nconst pin = this.TRG.closest('[data-test-id=\"pin\"]');\nif (pin?.querySelector('[data-test-id^=\"pincard-video\"], [data-test-id=\"pinrep-video\"]')) {\n return `https://ru.pinterest.com/pin/${pin.dataset.testPinId}/`\n}\n\nif($[1]) return $[1] + ($[2] ? $[2] : ($[3] ? $[3].replace(/(\\d+)_\\d+$/, '$1') + '_600' : '#originals 736x 564x#/' + $[4]))\nvar n=this.node, p=document.evaluate('./ancestor::a[starts-with(@href,\"/pin/\")]//img[contains(@src,\"pinimg.com\")]',n,null,9,null).singleNodeValue\np=p?this.find({src: p.src, IMGS_TRG: n}):''\nreturn (Array.isArray(p) ? p.join('\\n') : (p === null ? 'null' : p)) || ''","note":"hababr\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=2000#14\n\nEXAMPLES\nhttps://www.reddit.com/domain/pinterest.com/new/\nhttps://ru.pinterest.com/sadlovernovels/cars/\nhttps://ru.pinterest.com/search/pins/?q=cackes&rs=typed\nhttps://ru.pinterest.com/search/videos/?q=cars&rs=filter"}}
Let me know if it works.
Does pinterest also have albums or is it just one video or audio every time?
Also let me know if I should return the image cover when there is a video as an additional image.
For any redgifs link on old.reddit or just reddit I'm getting 403s in Chrome and Firefox.
Chrome also says:
(failed)net::ERR_BLOCKED_BY_ORB
And Firefox says:
NS_BINDING_ABORTED
https://www.reddit.com/domain/redgifs.com/new
I've updated everything in the right order on both browsers. I even added the SMH rule suggested by /u/numso531 in the recent 404 thread. No dice.
{"Giphy":{"useimg":1,"link":"^(g(?:iphy\\.com/(?:gifs|embed)|ph\\.is(?:/g)?)/)([\\w-]+).*","url":"$1$2","res":"property=\"og:video:secure_url\" content=\"([^\"]+)","img":"^media\\d?\\.((giphy)\\.com/)media/(\\w+)/.*","to":"media.$1media/$3/$2.#mp4 gif#","note":"EXAMPLES\nhttps://www.reddit.com/domain/giphy.com/new/\nhttps://www.instagram.com/p/C-0UMYMuzs5/?img_index=1"}}
Old one didn't work when the format of the url wasn't explicit
I have no idea what I am doing and hate to bother you guys, but there's a site called Trampt that has art and designer toys, an encyclopedia of sorts with a lot of pictures. I tried figuring out how to write my own Sieve and all, but that wasn't too successful. On the homepage it shows the spinning thing, indicating its trying to load on mouse-over. I'm scratching my head, but might be too in-over my head on this one. Any help would be very much appreciated. Either way, the site is awesome if any of you guys like designer toys/art 😅!
{"Dubz":{"link":"^(?:clip\\.)?dubz\\.[a-z]{2,4}/[a-z]{1,}/([a-z0-9]{6,})$","res":"(?:video|source) src=\"([^#\"]+)","note":"Imagus_fan\nhttps://www.reddit.com/r/imagus/comments/16s6g6c/comment/k283ned\nOLD\nhttps://www.reddit.com/r/imagus/comments/130svfu/comment/jv5cpmr\n\nEXAMPLES\nhttps://www.reddit.com/domain/dubz.co/new/\nhttps://www.reddit.com/domain/dubz.link/new/"}}
Links from the .co domain do not work on firefox. .link domains work.
Both work in chrome.
Hopefuly someone can figure out why 🙏
We seem to have a problem with RedGifs on Reddit (need a new rule for SMH?).
{"Coomer|Kemono|Nekohouse-x-q-p":{"link":"^((beta\\.)?(?:kemono|coomer|nekohouse)\\.(?:party|su))/[^/]+/user/[^/]+/post/\\w+\\d+","res":":\nconst low_resolution_first = false\n\nconst t=$._.match(/\"post__content\">\\n<pre>(.+?)<\\/pre>/s)?.[1]||''\nreturn [...$._.matchAll(/(?:class=\"fileThumb\"[^\\w]+href|src(?==\"[^>]+type=\"video\\/[^\"]{3,4}\"))=\"([^\"]+)\"(?:[^>]+>[^>]+src=\"([^\"]+))?/g)].map((i,n)=>[[(!low_resolution_first?'#':'')+i[1]?.replace(/^\\/[^\\/]/,'//'+$[1]+'$&'),(!low_resolution_first?'':'#')+i[2]?.replace(/^\\/[^\\/]/,'//'+$[1]+'$&')],!n?t:''])","img":"^img(\\.(?:coomer|kemono)\\.(?:party|su)/)thumbnail","to":"c2$1"}}
This seems to have happened in the last two weeks or so, but Imagus on Chrome, used on Reddit with links to Twitch clips seems to be erroring out and not loading.
Any solutions or something others have noticed?
Screenshot examples: https://imgur.com/a/nf5iuuU
Example link: https://weverse.io/jeremyzucker/fanpost/4-169375513
the pop-up of an image has "?type=w1414" in its address at the end.
Remove it to get a better image. 😊
some images have other suffixes in their address link like "?type=e1414_1414_stopgif", "?type=s704_704_stopgif" after .jpg
Please make a sieve for that site.
Installed new update and it won't work on my reddit setup. All the "old reddit" options are gone.
I have Imagus mod installed and I am using Sieves version dated 01.09.2024 (788 sieves)
When I search on Google and click the images link I cannot get the images to zoom when
I hover over them, I get a VERY brief glimpse of the green spinning disc but it then turns light orange.
Am I missing something?
Update of the rules for SMH (separate from sieves):
SimpleModifyHeader_2024.09.03_81.conf
With our rule-set, we recommend using Imagus Mod v.0.10.15 (Chrome|Firefox). You can read about its advantages over the outdated Imagus (it has not been updated for 4 years) here. How to install Imagus Mod - see FAQ, p.19.
To update the sieves in Imagus Mod, it is enough to delete the old ones, click "Save" and then - the "Update Sieve" button. Once the new sieves have been successfully imported, you must click "Save" again to confirm the changes.
NB! In this topic, all questions not related to the update of our rule-set are strictly prohibited. Create a new topic in the community with your question or message.
Regarding the right-click context menu, I've searched through the forums and found discussions about this issue, but it seems like there's no definitive solution. This might be the biggest hurdle stopping me from fully migrating from Chrome to Firefox.
Here's my problem: In Firefox, with nothing but Imagus installed, when I right-click an image, the context menu appears, but the image disappears. Additionally, when I click 'Copy,' nothing is copied to the clipboard. However, I don't encounter this issue with Imagus on Chrome.
What I need is not to activate Full Zoom mode, but rather to right-click in Normal mode, bring up the context menu, and perform actions directly.
Does anyone know how to fix this issue?
The nicovideo.jp website is now back. It now has a new UI so I had to update the sieve. I also used the imagus extension to show a sidebar like the youtube sieve.
It still only shows the thumbnail and the video's data (i.e. no video playback) but thats enough.
Test urls:
https://www.nicovideo.jp/watch/sm43891948
https://www.nicovideo.jp/watch/nm7683119
https://www.nicovideo.jp/watch/so42899713
It would be great if the maintainers could add this update to the main sieve repo.
As always many thanks to all sieve maintainers and everyone else.
{"NicoVideo.jp-p":{"link":"nicovideo\\.jp/watch/(sm|so|nm)(\\d+).*","res":":\n//To disable the sidebar, set use_sidebar below to false.\nconst use_sidebar = true;\nconst res = [];\nconst parser = new DOMParser();\nconst doc = parser.parseFromString($._, \"text/html\");\nconst dataNode = doc.querySelector('meta[name=\"server-response\"]');\nlet jsonData = JSON.parse(dataNode?.attributes?.content.value);\nif (jsonData) {\n const response = jsonData?.data?.response;\n res.push(response?.video?.thumbnail?.player);\n let sec = response?.video?.duration;\n let duration = \"\";\n if (sec) {\n let hh = Math.floor(sec / 3600);\n let mm = Math.floor((sec % 3600) / 60);\n let ss = sec % 60;\n duration = `${hh ? hh.toString().padStart(2, '0') + \":\" : \"\"}${mm.toString().padStart(2, '0')}:${ss.toString().padStart(2, '0')}`;\n }\n let date = new Date(response?.video?.registeredAt)?.toLocaleString('ja-JP');\n if (use_sidebar) {\n res.push(`<imagus-extension type=\"sidebar\"><h3 style=\"font-size: 1.2em;\"><b>${response?.video?.title}</b></h3>\\nAuthor: \\t\\t${response?.owner?.nickname || response?.channel?.name}\\nDate: \\t\\t${date}\\nLength: \\t\\t${duration}\\nViews: \\t\\t${response?.video?.count?.view}\\nComments:\\t${response?.video?.count?.comment}\\n\\n${response?.video?.description}</imagus-extension>`);\n this.TRG.IMGS_ext_data = res;\n return { loop: 'imagus://extension' };\n } else {\n res.push(`${response?.video?.title} | ${response?.owner?.nickname || response?.channel?.name} | ${date} | ⏱ ${duration} | 👁 ${response?.video?.count?.view} | 💬 ${response?.video?.count?.comment} | 📝 ${response?.video?.description}`);\n return res;\n }\n} else {\n return;\n}","note":"onurtag\nhttps://www.reddit.com/r/imagus/comments/18hwm0n/new_sieve_for_nicovideojp/\n\n!!!\n- This sieve is showing the thumbnail and using a sidebar also shows the title, uploader, views, comments, date, length and description.\n\n\nEXAMPLES\nhttps://www.reddit.com/r/imagus/comments/18hwm0n/comment/kdapdv2\nhttps://www.nicovideo.jp/watch/sm43891948"}}
Edit: added use_sidebar option to toggle the use of the sidebar.
Started happening within the last few hours.
I can open the threads and the videos will play normally but they won't play on hover with the Imagus mod.
I tried it with the June 24 and August 15 sieves and both have the same issue.
Video of the behavior can be seen here
Not limited to any one sieve or website, but does hovering over a video/reel/image mark that post as "watched" on the site and affect the algorithm? Or does hovering work like some sort of anonymous / non-cached (on the website) view?
Worked fine earlier in the day but suddenly not even a spinning wheel is showing. Checked other sites and everything is fine so it seems to be only Reddit.
It usually takes too much space on screen when the video description is too long and I can't even see the thumbnail
Having to click the extension icon near the bookmark toolbar for each individual webpage is a nogo for me.
I have captions enabled and works great except recently I started missing them because of people posting text along with a reddit gallery. The "Consider link-text as caption" option is enabled but apparently doesn't do what I think it does?
Example post with a gallery and captions that only display if I expand inline instead of when I hover to view and scroll through the gallery images: https://www.reddit.com/r/Upperwestside/comments/1eyuetf/uws_package_thief/