Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name V3rmillion USA
- // @author Burkino
- // @namespace https://v3rmillion.net/
- // @version 0.3
- // @description USA! USA! USA!
- // @run-at document-idle
- // @include *://*.v3rmillion.net/*
- // @include *://v3rmillion.net/*
- // @grant GM_addStyle
- // ==/UserScript==
- (function() {
- function getImagesByAlt(alt) {
- var allImages = document.getElementsByTagName("img");
- var images = [];
- for (var i = 0, len = allImages.length; i < len; ++i) {
- if (allImages[i].alt == alt) {
- images.push(allImages[i]);
- }
- }
- return images;
- }
- try {
- for (var Pride of getImagesByAlt("Pride Charity Award")) {
- Pride.setAttribute("src", "https://v3rmillion.net/favicon_USA.ico") // replaces pride awards with American pride
- Pride.setAttribute("height", "24") // scales awards to the proper size
- Pride.setAttribute("width", "24")
- }
- }
- catch (e){
- console.log("no pride award")
- }
- GM_addStyle(`
- :root {
- --pride-banner:
- linear-gradient(45deg, #B22234 0%, #FFFFFF 50%, #3C3B6E 100%);
- --pride-banner-rgba:
- repeating-linear-gradient(to right, rgba(178, 34, 52, 1), rgba(255, 255, 255, 1), rgba(60, 59, 110, 1));
- }
- .thead {
- text-shadow:
- -1px -1px 0 #1a1a1a,
- 0 -1px 0 #1a1a1a,
- 1px -1px 0 #1a1a1a,
- 1px 0 0 #1a1a1a,
- 1px 1px 0 #1a1a1a,
- 0 1px 0 #1a1a1a,
- -1px 1px 0 #1a1a1a,
- -1px 0 0 #1a1a1a;
- };
- `)
- /*
- --pride-banner is the outlines
- --pride-banner-rgba is the inner gradient only seen on theme 2
- .thead is the text inside the rgba gradients
- */
- var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
- link.type = 'image/x-icon';
- link.rel = 'shortcut icon';
- link.href = 'https://v3rmillion.net/favicon_USA.ico';
- document.getElementsByTagName('head')[0].appendChild(link); // sets favicon to usa icon
- try {
- document.getElementById("logo").querySelector("a").querySelector("img").setAttribute("src", "https://i.imgur.com/mfMOwpe.gif") //Logo at top
- } catch (e){
- console.log("couldnt find logo, internal error page?")
- }
- try {
- document.getElementById("container").quertSelector("img").setAttribute("src", "https://i.imgur.com/mfMOwpe.gif") //Logo on error page
- } catch(e) {
- console.log("couldnt find logo, not error page?")
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement