Now with HTTPS!

Ryan DeYong's Programming Portfolio

Home In-browser Examples Bash Scripts Chrome Userscripts The Best Calculators Physical Projects Fine Art Website Source Code


These are userscripts that I wrote to help automate some tedious tasks in Google Chrome.

EBay Shipping Calculator

// ==UserScript== // @name EBay Shipping Calculator // @version 1.0 // @match https://www.ebay.com/* // ==/UserScript== // calculates ebay's shipping + item price and displays it near the price // stops confusion in shipping prices var prices = document.getElementsByClassName('lvprice prc'); var shippings = document.getElementsByClassName('lvshipping'); for(var i = 0;i < prices.length;i++) { if(shippings[i] !== undefined) { var shipping = parseFloat(shippings[i].textContent.replace(/^\D+/g, '')); var price = parseFloat(prices[i].getElementsByClassName('bold')[0].textContent.replace(/^\D+/g, '')); if(!isNaN(shipping)) { prices[i].getElementsByClassName('bold')[0].innerHTML += ' ($' + (price + shipping).toFixed(2) + ')'; console.log("Price is " + price); } } }

Reddit Downvote Post Clear

// ==UserScript== // @name Reddit Downvote Post Clear // @version 1.0 // @match https://www.reddit.com/* // ==/UserScript== // Clears all downvoted posts from view var posts = [].slice.call(document.getElementsByClassName('link')); for(var i = 0;i < posts.length;i++) { if(posts[i].getElementsByClassName('dislikes').length == 3) { posts[i].parentElement.removeChild(posts[i]); } }

Steam Web Interface Autoscroll Fix

// ==UserScript== // @name Steam Web Chat Autoscroll // @version 1.1 // @match https://steamcommunity.com/chat // ==/UserScript== //fixes the position of the chat dialog content inner class using some CSS injection //this is necessary for the ScrollToBottom method to function properly var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = '.chat_dialog_content_inner {position:absolute;};'; document.getElementsByTagName('head')[0].appendChild(style);

About me
Contact Information:
Voicemail box #: +14408478142
Email: administrator@ryancdeyong.us

All software on this website uses the MIT License.
ξ This page was generated Fri Mar 14, 2025 12:45