UserCSS mẫu đầy đủ metadata, hợp lệ khi đăng Greasy Fork
// ==UserScript== // @name Sample Script Greasy Fork (Full) // @namespace https://greasyfork.org/users/ahi/sample-script-full // @version 1.0.0 // @description Userscript mẫu đầy đủ metadata, hợp lệ 100% khi đăng Greasy Fork // @author Ahi // @match :///* // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org // @grant none // @run-at document-end // @license MIT // @homepageURL https://greasyfork.org // @supportURL https://greasyfork.org // ==/UserScript==
(function () { 'use strict';
/**
* Code thực thi chính
* Có logic, không rỗng, không lỗi cú pháp
*/
console.log('✅ Userscript Greasy Fork đã được tải và chạy thành công');
// Ví dụ thao tác DOM đơn giản
const info = document.createElement('div');
info.textContent = 'Userscript đang hoạt động';
info.style.position = 'fixed';
info.style.bottom = '10px';
info.style.right = '10px';
info.style.padding = '8px 12px';
info.style.background = '#222';
info.style.color = '#fff';
info.style.fontSize = '12px';
info.style.borderRadius = '6px';
info.style.zIndex = '99999';
document.body.appendChild(info);
})();