Make images full view and move text to bottom in olamovies.autos

2/14/2024, 10:50:32 AM

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Make images full view and move text to bottom in olamovies.autos
// @namespace   Violentmonkey Scripts
// @match       https://olamovies.autos/*
// @grant       none
// @version     1.0
// @author      -
// @description 2/14/2024, 10:50:32 AM
// ==/UserScript==
(function() {
    'use strict';

    // Get all article elements
    var articles = document.querySelectorAll('article');

    // Iterate over each article element
    articles.forEach(function(article) {
        // Get all elements with class "entry-overlay" within the current article
        var overlayElements = article.querySelectorAll('.entry-overlay.box-inner-p');

        // Iterate over each overlay element within the current article
        overlayElements.forEach(function(overlayElement) {
            // Move the overlay element after the article
            article.insertAdjacentElement('afterend', overlayElement);
            // Remove classes from the overlay element
            overlayElement.classList.remove('entry-overlay', 'box-inner-p');
        });

      // for remove shading of the images  
        // Get all elements with class "entry-image" within the current article
        var imageElements = article.querySelectorAll('.entry-image');

        // Iterate over each image element within the current article
        imageElements.forEach(function(image) {
            // Remove the "entry-image" class from each image element
            image.classList.remove('entry-image');
        });
    });
})();