Last active
November 16, 2020 21:44
-
-
Save digital-carver/502e34eb4aa650c39438cdb0c4b95c04 to your computer and use it in GitHub Desktop.
Userscript for use with UrbanPro website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YourbanPro | |
// @namespace aaressaar | |
// @match http*://www.urbanpro.com/* | |
// @grant none | |
// @version 0.5 | |
// @author SundaraRaman | |
// @description Remove annoyances and improve UrbanPro interface | |
// ==/UserScript== | |
function skipInterstitial() { | |
if (document.URL.startsWith('https://www.urbanpro.com/register/viewInterstitial')) { | |
skipLink = document.getElementsByClassName('skip')[0]; | |
skipLink.click(); | |
} | |
} | |
function improve_ui_elements() { | |
if (document.getElementById('menu_nav')) { | |
qns_link_text = document.querySelector('a[href="/comment/myRecentQuestionPage"] h3 span').nextSibling; | |
qns_link_text.data = "Recent Questions"; | |
} | |
} | |
improve_ui_elements(); | |
skipInterstitial(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment