您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Emulate sendBeacon if beacon.enabled is disabled in Firefox for https://*.perplexity.ai/*
// ==UserScript== // @name Emulate sendBeacon on Perplexity.ai // @namespace http://tampermonkey.net/ // @author ohmylock // @version 1.0 // @description Emulate sendBeacon if beacon.enabled is disabled in Firefox for https://*.perplexity.ai/* // @match https://*.perplexity.ai/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Переопределяем navigator.sendBeacon для сайта, если это нужно if (!navigator.sendBeacon) { navigator.sendBeacon = function(url, data) { try { fetch(url, { method: 'POST', body: data, keepalive: true, credentials: 'include', // если нужен куки headers: { // Если данные в формате Blob или FormData, можно не указывать // 'Content-Type': 'application/x-www-form-urlencoded' // при необходимости } }); return true; } catch (e) { return false; } }; } })();