Skip to content

Instantly share code, notes, and snippets.

@digital-carver
Last active November 16, 2020 21:44
Show Gist options
  • Save digital-carver/502e34eb4aa650c39438cdb0c4b95c04 to your computer and use it in GitHub Desktop.
Save digital-carver/502e34eb4aa650c39438cdb0c4b95c04 to your computer and use it in GitHub Desktop.
Userscript for use with UrbanPro website
// ==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