suruga-ya enhancer
ID
cmffoeeehcboaiapfhbdafcaffglhngfAn extension that improves the usability of Suruga-ya.
Capturas de pantalla
Descripción
An extension that improves the usability of Suruga-ya.
Note: This extension turns some links on Suruga-ya into affiliate links. Please be aware of this in advance.
It performs the following actions on Suruga-ya (www.suruga-ya.jp):
- Displays the stock count below the quantity selection box on sale pages.
- Adds a link to the purchase page when there is no such link on the sale page.
- On sale pages, loads the purchase page from its URL and retrieves the purchase price, JAN and image.
- On sale pages, displays the retrieved JAN and adds JAN search links for sales, purchases, Google and Amazon.
- When a sale page's product image is no_photo.jpg, replaces it with the image retrieved from the purchase page.
- On marketplace sale pages, adds a link to the Suruga-ya.JP sale page.
- On marketplace sale pages, retrieves the shop's shipping charge and adds a link to display it in a modal.
- On out-of-stock sale pages, retrieves and displays the price (the previous sale price) from structured data in the source, if present.
- On sale pages for previously ordered items, retrieves and displays the price at the time of ordering.
- Adds a link (button) to the sale page on purchase pages.
- On purchase pages, loads the sale page from its URL and retrieves the sale price and first image.
- Displays the retrieved sale price on purchase pages.
- When the purchase price is not displayed on a purchase page but can be retrieved from the sale page, displays that price.
- When a purchase page's product image is no_photo.jpg, replaces it with the first image retrieved from the sale page.
- Turns Safe Search off, displaying age-restricted products and hiding warning screens.
- Automatically clicks the warning screen displayed on sale pages for age-restricted products.
- Adds options to show, hide or show only out-of-stock products on each page of the favorites list.
- Adds options to show, hide or show only out-of-stock products on each page of the restock list.
- Replaces product numbers in purchase history with links to their sale pages.
- Displays the total price of items in the cart and shipping charges next to the cart icon at the top right of the page.
- Adds the lucky bag category to the category selection box next to the search box at the top of the page if it is missing.
- Adds a link to the lucky bag category in the sidebar menu on the left of the page.
When retrieving the cart total, the extension retrieves the item total and shipping charges separately.
Shipping charges are displayed as the sum of Suruga-ya.JP shipping and marketplace shop shipping.
If shipping is free, [Free shipping] is displayed. If shipping is charged and the amount is known, it is displayed as [+○○ yen].
If the cart contains products from a shop that charges shipping by region, [+by region] is displayed.
If there are products from multiple shops and their shipping charges are based on region, [+by region x (number of shops)] is displayed.
If there are products from multiple shops with a mixture of known and region-based shipping charges, [+○○ yen,+by region] is displayed.
To reduce unnecessary access to the cart, the number of items, total price and shipping charges are saved in localStorage.
On the cart page, this information is always retrieved and saved. On other pages, if the item count shown on the cart icon matches the count saved in localStorage, the information is retrieved from localStorage; otherwise, it is retrieved from the cart page.
It is also retrieved from the cart page when the [Add to cart] button is pressed on a sale page.
The options added to the favorites and restock lists are saved in localStorage as settings shared by both lists.
Age-restricted products are affected by Suruga-ya's Safe Search feature.
When Safe Search is enabled, they are hidden from search results and a warning screen appears on age-restricted product pages.
This extension edits cookies to turn Safe Search off and also automatically clicks the warning screen.
If cookies are edited on a search results page, the page is automatically reloaded.
Safe Search uses the cookies safe_search_option and safe_search_expired.
These cookies are saved with an expiration of 999 days.
Cookies are saved and the page is reloaded three seconds after the page is displayed.