// ==UserScript== // @name BestAppearance for Popmundo // @Author Peter Svendsen (CharId #1662408) // @description This will change the appearance of the Popmundo game. It will add values and qualities, change the default check box to true, allow you to filter items, and add global fame to your band // @version 1.0 // @include https://*.popmundo.com/World/Popmundo.aspx/* // @require https://code.jquery.com/jquery-1.7.1.min.js // @grant GM_info // @namespace https://scriptsppm.000webhostapp.com/ // @downloadURL https://update.greasyfork.icu/scripts/386255/BestAppearance%20for%20Popmundo.user.js // @updateURL https://update.greasyfork.icu/scripts/386255/BestAppearance%20for%20Popmundo.meta.js // ==/UserScript== var jisQuery=jQuery.noConflict(),urlCurrent=window.location.href,numCities=49,mediaFame=0,mediaMC=0;function appendJsFile(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,jisQuery("head").append(t)}function canExec(e){return window.location.href.match(e)}function giveCheckboxDefaultTrue(){jisQuery("[id$=chkDelivery]").prop("checked",!0)}function giveSortableTableFoldOption(){jisQuery("table.data.sortable").each(function(){var e=jisQuery(this).attr("id");jisQuery(this).find("th.header").not(".width60").each(function(){var t=' ';jisQuery(this).append(t)})})}function giveScoringNumberValues(){jisQuery("a[href*='Scoring']").each(function(){value=jisQuery(this).attr("title"),value=value.substr(0,value.lastIndexOf("/")),value=jisQuery(this).text()+" ("+value+")",jisQuery(this).text(value)})}function giveScoringProgressBarPercentages(){jisQuery('div[class*="rogressBar"]').each(function(){value=jisQuery(this).attr("title"),value=value.substr(0,value.indexOf("%")),span=' '+value+"%",value=jisQuery(this).children("div:first").append(span)})}function giveScoringNegativeProgressBarPercentages(){jisQuery(".plusMinusBar").each(function(){value=jisQuery(this).attr("title"),value=value.substr(0,value.indexOf("%")),span=' '+value+"%",value>=0?jisQuery(this).children("div").eq(1).children().append(span):jisQuery(this).children("div").eq(0).children().append(span)})}function addsGlobalFameMedia(){jisQuery("a[href^='/World/Popmundo.aspx/Help/Scoring/']").each(function(){var e=jisQuery(this).attr("title");e=e.replace("/26",""),mediaFame+=parseInt(e)}),jisQuery("#tablefame div[class$='ProgressBar']").each(function(){var e=jisQuery(this).attr("title");e=e.replace("%",""),mediaMC+=parseInt(e)}),jisQuery("tr:first").after(function(){var e=mediaFame/numCities;e=e.toFixed(2);var t=mediaMC/numCities,a='