Spoof desktop UA on TVer and Prime Video for iOS Safari
// ==UserScript==
// @name TVerを iOS版Safariで視聴可能にするスクリプト
// @name:ja TVerを iOS版Safariで視聴可能にするスクリプト
// @namespace http://tampermonkey.net/
// @version 1.4
// @description:ja TVerを iOS版Safariで視聴可能にするスクリプト
// @match https://tver.jp/*
// @run-at document-start
// @description Spoof desktop UA on TVer and Prime Video for iOS Safari
// ==/UserScript==
(() => {
'use strict';
const spoofProps = {
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15",
platform: "MacIntel",
vendor: "Apple Computer, Inc.",
maxTouchPoints: 1
};
for (const [key, value] of Object.entries(spoofProps)) {
Object.defineProperty(navigator, key, {
get: () => value,
configurable: true
});
}
})();