// ==UserScript==
//
@name rahome
//
@namespace http://tampermonkey.net///
@version 2024-03-17
//
@Description try to take over the world!
//
@Author ootwclyhe
// @match
http://*.uc129.com/*// @icon
https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
var div1 = document.getElementById('ba');
var div2 = document.getElementById('ba_b');
if (div1&&div2) {
div1.parentNode.removeChild(div1);
div2.parentNode.removeChild(div2);
}
var element = document.body;
element.style.position = 'relative';
element.style.overflowY = 'scroll';
var sbsc = document.createElement('div');
sbsc.style.position = 'absolute';
sbsc.style.top = '0';
sbsc.style.right = '0';
sbsc.style.width = '30px';
sbsc.style.height = '100%';
sbsc.style.backgroundColor = 'rgba(0, 0, 0, 0.2)';
sbsc.style.display = 'flex';
sbsc.style.alignItems = 'center';
sbsc.style.justifyContent = 'center';
sbsc.style.zIndex = '9999';
sbsc.style.cursor = 'pointer';
sbsc.addEventListener('mousemove', function(e) {
var scrollTop = e.pageY - this.getBoundingClientRect().top;
element.scrollTop = scrollTop;
});
document.body.appendChild(sbsc);
// Your code here...
})();