try to take over the world!
// ==UserScript==
// @name 西瓜视频按F键全屏
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author You
// @match *://*.ixigua.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.addEventListener('keydown', function(event) {
if (event.code === 'KeyF') {
var elements = document.querySelectorAll('[aria-label="全屏"],[aria-label="退出全屏"]');
if (elements.length > 0) {
elements[0].click();
}
}
});
})();