Can confirm, global user scripts now load properly on Wikipedia.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 18 2023
Jan 30 2023
The View it! API has been updated to support a ?caption=true query parameter. When provided, the API will return captions in all available languages for each image.
The title attribute has been added to images in both the carousel and full-gallery view. The on-hover UI is in-progress.
This has been fixed via adding width: 0px; min-width: 100%; to the View it! gallery element. This causes the element to have no width for the sake of its parent elements calculating their widths, but it will appear at 100% width of the page contents.
To get this to work, we would probably have to re-initialize MediaViewer after View it!'s carousel has loaded. I've done some investigating, and also got some guidance from @Tgr.
Jan 23 2023
When viewing a Wikidata item without a P18 statement, View it! carousel images will have a "+" icon as shown:
This would probably only be done in source editor, since the alt text is hidden away in a popup menu in Visual Editor.
Jan 12 2023
A "Close View it!" button has been added below the carousel, floated to the right side of the article title next to where article status icons usually go (featured articles, protection lock icons, etc.)
Carousel now works in source editor as well. To get the q-number, the DOM is queried to pull the q-number from the sidebar's "Wikidata item" link. This isn't ideal and more of a quick solution, pending using an API call (though querying the DOM has the added benefit of not having to wait for an API call to complete).
Copy-to-clipboard has been launched and works in both VE and source editor. The copy-to-clipboard button only appears when editing the page.
Jan 2 2023
After discussion, we will be adding a "copy to clipboard" feature for images in the carousal. This is a solid and relatively quick solution that will work in both Visual Editor and source editor. More intricate functionality (like placing an image wherever your cursor is in VE) may be considered in the future.
Dec 31 2022
Image carousel now works when editing via Visual Editor. This was done by setting pointer-event and opacity CSS on the View it! container, in order to overwrite the ve-init-mw-desktopArticleTarget-uneditableContent class that is applied to the container when VE is activated.
Added a blacklist to the script that currently just has Main_Page
Dec 24 2022
Script is in-progress that outputs an expandable image carousal that can be expanded into a grid. The script pulls from the View it! API.
Dec 8 2022
This has been implemented and successfully tested on both desktop and mobile.
The introductory logo+text now only appears on the homepage (i.e. user hasn't performed a search yet).
Nov 7 2022
Oauth authentication is now working; can try it out via https://view-it.toolforge.org/login.
Oct 31 2022
Progress is being made; requested an OAuth consumer key (20f7833888703a9e334d3de1b4501941)
Oct 26 2022
Since clicking the View it! portlet link now opens in a new tab (T317214), it may be a good idea to remove the "return to article" button, as all the user needs to do to return to the article is switch or close tabs. Removing the button also helps reduce how crowded the top of the page is getting, especially with advanced search enabled.
Oct 18 2022
Support for P373 has been added to the UI.
Published changelog here: https://meta.wikimedia.org/wiki/View_it!_Tool/Changelog
Oct 6 2022
Oct 3 2022
Published at https://gitlab.wikimedia.org/kevinpayravi/view-it
This has been implemented (see screenshot), in both the UI and API (API parameter is freetext).
This has been launched for Vector Legacy, Vector 2022, and Timeless.
Sep 26 2022
I've got this working with Vector (the old version), though it's not pushed live yet. I may tune the gradient and text color.
incategory search has been added to the View it! API.
Sep 20 2022
Sep 19 2022
API endpoint has been expanded with offsets and filters.
Sep 15 2022
User script now supports multiple languages.
Sep 13 2022
From T317589: Logging is working again, and I'll be able to extract this data manually as needed. I can probably put a quick script together that trawls through the logs and outputs counts for each project.
Started a JSON page where translations for the user script will live:
https://meta.wikimedia.org/wiki/View_it!_Tool/translations.json
Logs have been created, with each request formatted as:
=========================== Request at Tue Sep 13 2022 01:07:51 GMT+0000 (GMT): User agent: Mozilla/5.0... Path name: / Query: q=Q2
Sep 12 2022
I have created a Node/Express API with basic functionality, allowing you to pull 20 images for a Q-number. I'll soon expand this to allow filtering, pagination, and additional metadata if it's available. Once complete, the frontend UI can start using it as well.
Sep 10 2022
We now have a separate test page where work on this has begun:
https://view-it.toolforge.org/test/
Aug 30 2022
Tool now checks for valid Q-number format (user can provide either an integer, or a Q followed by an integer).