// ==UserScript==
// @name Luogu Team Quick Access(made by fire_star_)
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 在页面右下角添加示例一和示例二团队快捷按钮
// @author fire_star_
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const buttonContainer = document.createElement('div');
buttonContainer.style.position = 'fixed';
buttonContainer.style.right = '20px';
buttonContainer.style.bottom = '20px';
buttonContainer.style.zIndex = '9999';
buttonContainer.style.display = 'flex';
buttonContainer.style.flexDirection = 'column';
buttonContainer.style.gap = '10px';
const wtcButton = document.createElement('button');
wtcButton.textContent = '示例一';
wtcButton.style.padding = '8px 16px';
wtcButton.style.backgroundColor = '#3498db';
wtcButton.style.color = 'white';
wtcButton.style.border = 'none';
wtcButton.style.borderRadius = '4px';
wtcButton.style.cursor = 'pointer';
wtcButton.style.fontWeight = 'bold';
wtcButton.addEventListener('click', () => {
window.open('https://www.luogu.com.cn/team/xxxxxx', '_blank');
});
const flpButton = document.createElement('button');
flpButton.textContent = '示例二';
flpButton.style.padding = '8px 16px';
flpButton.style.backgroundColor = '#e74c3c';
flpButton.style.color = 'white';
flpButton.style.border = 'none';
flpButton.style.borderRadius = '4px';
flpButton.style.cursor = 'pointer';
flpButton.style.fontWeight = 'bold';
flpButton.addEventListener('click', () => {
window.open('https://www.luogu.com.cn/team/xxxxxx', '_blank');
});
buttonContainer.appendChild(wtcButton);
buttonContainer.appendChild(flpButton);
document.body.appendChild(buttonContainer);
})();剪贴板
剪贴板 my4716pn
剪贴板信息
剪贴板信息
- 收录
- 更新