Lure宝可梦替换

替换lure的卡牌,展示为宝可梦

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Lure宝可梦替换
// @namespace    http://tampermonkey.net/
// @version      2024-09-11
// @description  替换lure的卡牌,展示为宝可梦
// @author       N
// @match        https://boardgamearena.com/*lure*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=boardgamearena.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    // 创建一个新的<style>元素
    var style = document.createElement('style');
    style.type = 'text/css';

    // 写入新的CSS规则
    style.appendChild(document.createTextNode(`
        .card {
            background-image: url(https://s21.ax1x.com/2024/08/29/pAAcPns.jpg) !important;
            background-size: 1500% 300%
        }
    `));
    document.head.appendChild(style);
})();