Skip to content

Instantly share code, notes, and snippets.

@Miuler
Last active March 15, 2023 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Miuler/f685f405fa9d1c9d4ade to your computer and use it in GitHub Desktop.
Save Miuler/f685f405fa9d1c9d4ade to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Scroll Bar Hide
// @namespace https://miuler.com/
// @version 0.1
// @description Hide the scroll bar for sites.
// @author Miuler
// @match https://www.youtube.com/*
// @grant unsafeWindow
// @grant GM_registerMenuCommand
// @icon https://miro.medium.com/v2/resize:fill:48:48/1*6LVWTSSvxCYaftgZH-XFMQ.jpeg
// ==/UserScript==
(function() {
'use strict';
//GM_registerMenuCommand("Enable Scrolling", function() {
// enableScrolling();
//}, 'r');
function enableScrolling() {
const style = document.createElement('style');
style.textContent = `
body::-webkit-scrollbar{
display: none;
}
`;
document.head.appendChild(style);
}
enableScrolling();
})();
// ==UserScript==
// @name Show InvoiceId
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author Hector Miuler Malpica Gallegos
// @match https://billing.bluestarenergy.com/billing-webapp/invoice/invoiceList.html
// @match http://billing.bluestarenergy.com/billing-webapp/invoice/invoiceList.html
// @grant none
// ==/UserScript==
var invoices = document.querySelectorAll("a[idsecurity='lnkReview_InvoiceLst']");
for(i in invoices) {
invoice = invoices[i];
var salesInvoiceId = invoice.href.split("=")[1];
var child = document.newElement("div");
child.innerText = salesInvoiceId;
invoice.parentElement.appendChild(child);
//invoice.parentElement.appendText(salesInvoiceId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment