Windows Cursor for iPad (iOS)

Force a Windows-style mouse cursor on all sites (where iOS allows custom cursors).

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Windows Cursor for iPad (iOS)
// @namespace    https://greasyfork.org/en/users/your-name
// @version      1.0
// @description  Force a Windows-style mouse cursor on all sites (where iOS allows custom cursors).
// @author       You
// @match        *://*/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  // Simple white arrow with black border, Windows-like
  // SVG is URL-encoded for use directly as a data URL
  const windowsCursor = 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2218%22%20height%3D%2228%22%20viewBox%3D%220%200%2018%2028%22%3E%3Cpath%20d%3D%22M1%201L1%2024L6%2018L10%2027L13%2026L9%2017L16%2017Z%22%20fill%3D%22white%22%20stroke%3D%22black%22%20stroke-width%3D%221%22/%3E%3C/svg%3E';

  function injectCursorStyle() {
    const style = document.createElement('style');
    style.id = 'ios-windows-cursor-style';
    style.textContent = `
      * {
        cursor: url("${windowsCursor}") 1 1, default !important;
      }
    `;
    document.documentElement.appendChild(style);
  }

  if (document.documentElement) {
    injectCursorStyle();
  } else {
    document.addEventListener('DOMContentLoaded', injectCursorStyle, { once: true });
  }
})();