|
// ==UserScript==
// @name 123khd
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Modify the navigator platform to iPhone
// @author Your name
// @match *://*.123khd.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
var originalPlatform = navigator.platform;
Object.defineProperty(navigator,'platform',{
get:function(){
return 'iPhone';
},
configurable: true
});
console.log('Original platform: ' + originalPlatform);
console.log('Modified platform: ' + navigator.platform);
})();
复制上述到 Tampermonkey,保存。 |
|