This page contains elements you can target with your Greasemonkey rules.
#test-element-1
#test-element-2
.test-class-target
test-page.htmlbody {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
color: white !important;
}
#test-element-1const elem = document.getElementById('test-element-1');
elem.style.background = 'yellow';
elem.innerHTML += ' - Modified by Greasemonkey!';
test-page.test-class-targetconst elem = document.querySelector('.test-class-target');
elem.style.border = '4px solid red';
elem.style.animation = 'pulse 2s infinite';
const style = document.createElement('style');
style.textContent = `
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
`;
document.head.appendChild(style);
test-page.html#test-element-2 {
display: none !important;
}
Open your browser's developer console (F12) to see Greasemonkey execution logs.
You should see messages like: [Greasemonkey] Executing rule: Your Rule Name