NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name SuperPoll // @include *://*.superpoll.site/* // @grant GM_getResourceText // @grant GM_addStyle // @version 1.2 // @require http://code.jquery.com/jquery-3.4.1.min.js // @license MIT // @copyright 2021, ayaMorita (https://openuserjs.org/users/ayaMorita) // @run-at document-start // ==/UserScript== let string = window.location.href.match(/[0-9]+/gm) if(window.location.href.endsWith(string)) { var $ = window.jQuery; $("img").on("error", function () { $(this).hide() }); } if(window.location.pathname === "/") { GM_addStyle(` body { background-color: #d0d0d0 !important; color: #000000 !important; } body > header { background-color: #FFFFFF !important; } #main_content > div > h1 { display: none !important; } #main_content { background-color: #d0d0d0 !important; } #main_content > div > div { background-color: #ffffff !important; } #main_content > div > div > div { background-color: #d0d0d0 !important; } #main_content > div > div > div.flex > a { display: none !important; } li.text-accent { color: #000000 !important; } h2.text-lg.text-accent { color: #000000 !important; } body > footer { background-color: #FFFFFF !important; } a.text-primary { color: #000000 !important; } body > footer > div.border-t-2.border-base-400.text-center.text-sm.py-3 { border-top-width: 0px !important; } #main_content > div > div.bg-base-200.p-4.rounded-md.flex.flex-col > form > div > button { background-color: #d0d0d0 !important; color: #000000 !important; } #main_content > div > div.bg-base-200.p-4.rounded-md.flex.flex-col > form > label > div > div { background-color: #d0d0d0 !important; } `) } if(window.location.pathname === "/polls") { GM_addStyle(` body { background-color: #d0d0d0 !important; color: #000000 !important; } body > header { background-color: #FFFFFF !important; } #main_content > div > div.flex.flex-col.gap-4.lg\:gap-6 { background-color: #d0d0d0 !important } #main_content > div > div > div { background-color: #FFFFFF !important; } body > footer { background-color: #FFFFFF !important; } body > footer > div.border-t-2.border-base-400.text-center.text-sm.py-3 { border-top-width: 0px !important; } #main_content > div > div.bg-base-200.p-4.rounded-md.flex.flex-col > form > div > button { background-color: #d0d0d0 !important; color: #000000 !important; } #main_content > div > div.bg-base-200.p-4.rounded-md.flex.flex-col > form > label > div > div { background-color: #d0d0d0 !important; } a.text-primary { color: #000000 !important; } li.text-accent { color: #000000 !important; } h2.text-lg.text-accent { color: #000000 !important; } body > header > div > div.flex.justify-self-end.place-items-center.gap-4 > div > ul > li { background-color: #FFFFFF !important; border-top-color: #d0d0d0 !important; } `) }