// ==UserScript==
// @name Game Search Helper
// @namespace https://store.steampowered.com/
// @version 1.3.8
// @license GPLv3
// @description Adds search buttons on various gaming related websites to search for the game on external sites
// @author xdpirate
// @include /^https\:\/\/www\.(nintendolife|pushsquare|purexbox|timeextension)\.com\/(games|news|reviews|features|guides)\/.*/
// @include /^https\:\/\/store\.steampowered\.com\/(app|bundle)\/.*/
// @include /^https\:\/\/www\.metacritic\.com/(browse|game)(\/games\/)?.*/
// @match https://store.epicgames.com/*
// @match https://en.wikipedia.org/wiki/*
// @match https://opencritic.com/*
// @match https://www.gog.com/*/game/*
// @match https://www.startpage.com/sp/search*
// @match https://github.com/xdpirate/GameSearchHelper/blob/main/CustomSearchEngines.md
// @require https://cdn.jsdelivr.net/npm/sortablejs@1.15.0/Sortable.min.js
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH4QYQECQfrlOPmwAAAAZiS0dEAP8A/wD/oL2nkwAASO1JREFUeNrtXQd8HOWVH1kGN9xkwOAiV5WdmV2VVduZWfXdWTXLTd0NXDAYjMFdkk011diWDAQMoSQESAg9lJDkLrmUSy53ORJSLrkLKaSRAkkoCfW7974dGdnI0u7szO7s6v1/v/9vZUvaXX37zX/ee98rgkAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgeBotO/rF9q6j45t7+mf0tHdl9HZ0ze5a9/R9K7eflocAoGQmujq7hNW7+of29lzxNfR03ct8FngN4FPA68AFrXuPJzetvMwLRaBQEgddPb0I88AkdsJ/DWQDcGfAy9p7+mbgD9PIBAISY9ll90lLN129xgQtz3At08hfgP8e0fPkYuWX7c9re2K62nxCARCcqMDrDmgOozldzJ/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TqQiDEHzhOA4jNE1owBGV4Y4mY6oha1IYdnm0fbib56gQ5fxmmyWQaR+M/i2O5zNtGMXMbqPwUWcF5JhTvIxASBbcaEArVCjwsPRe4FfjdOBlG2Lv0+8AdsqrPFsO9DOIZEMVSmeBYeHFRCp8M/adNdwCMMfweqzrgtdpwiEtuSU0adXMmEBwUGywFASrRx0gaN4ywn8CzWIdvQ4zwz0Zq3sUgegtz1VB6biKNIMyvkSt4S238wzuA9xq5eG/EYBn+0xhb96+GlanBwk6UqJsLgeBoZJXVCfmVteghToHrthy4B/i8cWr8ZpRd51E/3hqkBVfzWcaaPl0qKBckJ9X3u/26kIcNFf36BDF8F1gCvAr4IPDfeI6eqv/OCFa+bViLGMv7kzGQ6T+M8Xz9wI3AfEkNTpN9dekyta8nEJLPKvTpyDGSLwRiGMqSFH2FUWJ7t3Gtf9VwmV803NnvGul22LXlfuA1YaMqiAPMprs0PR071SRRfEAXPGrodFkLnsNb0St6EVCFPwbHcFbBovjh3ziST4av54lK3RnnNK8W5ukttHsIhBSEuzKAHCMr2Hk6NBOsuXl8KqWiL4bH+fDvWbIanJpfERiTXxmgBSMQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIDgR/w/z+T2wwUKU7wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wNi0xNlQxODozNjowNSswMjowMP2KC0oAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDYtMTZUMTg6MzY6MDUrMDI6MDCM17P2AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg==
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-end
// ==/UserScript==
if(window.top != window.self) { // Prevent the script from running in frames
throw `[${GM_info.script.name}] Not running as topmost frame, exiting`;
}
let GSHSettings = GM_getValue("GSHSettings", {
defaultProviders: {
Steam: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: true},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
HookshotMedia: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: true},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
Metacritic: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: false},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
EpicGamesStore: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: false},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
Wikipedia: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: false},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
OpenCritic: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: true},
OpenCritic: {enabled: false},
eBay: {enabled: true},
eBayUK: {enabled: false}
},
GOGcom: {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: true},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
}
},
customProviders: {},
OpenCriticHelperEnabled: true,
StripSpecialCharsEnabled: true
});
let defaultEnabledContextsForNewSearchEngines = {
Steam: true,
HookshotMedia: true,
Metacritic: true,
EpicGamesStore: true,
Wikipedia: true,
OpenCritic: true,
GOGcom: true
};
// Gracefully add new options if the user already has saved data that doesn't include them
if(GSHSettings.StripSpecialCharsEnabled == null) {
GSHSettings.StripSpecialCharsEnabled = true;
}
GM_addStyle(`
.GSHIcon {
border: none;
padding-left: 2px;
padding-right: 2px;
}
#GSHToggleButton, .GSHBuiltInHandle, .GSHCustomHandle {
cursor: pointer;
}
#GSHHeader {
font-size: 18px !important;
}
.GSHSteamBundleContainer, .GSHMetacriticListContainer {
margin-bottom: 20px;
}
.GSHSteamBundleContainer {
margin-left: 190px;
}
#GSHLinkbox {
float: right;
font-size: 10px;
}
#GSHBuiltInSearchEngines, #GSHCustomSearchEngines, #GSHCustomSearchEngineDiv {
padding: 10px;
border: 1px solid white;
line-height: 16px;
border-radius: 5px;
}
#GSHCustomSearchEngineDiv {
margin-top: 20px;
}
#GSHWrapper {
overflow: hidden;
}
#GSHBuiltInSearchEngines, #GSHCustomSearchEngines {
max-width: 500px;
height: 120px;
overflow-y: scroll;
overflow-x: scroll;
}
.GSHSearchContainer {
float: left;
}
#GSHOuterDiv {
float: left;
background-color: black;
color: white;
padding: 10px;
border: 1px solid white;
border-radius: 10px;
z-index: 2147483647;
display: block;
position: absolute;
top: 50px;
left: 10px;
font-family: Helvetica !important;
font-size: 14px !important;
}
#GSHSaveButton, #GSHOptionsDiv {
margin-top: 10px;
padding: 5px;
}
.GSHModifyCustomButton, #GSHCancelEditButton, #GSHNewCustomSearchButton, #GSHGetEnginesButton, .GSHLink {
font-size: 12px !important;
cursor: pointer;
color: #AAA;
text-decoration: none;
}
#GSHSaveDiv {
width: 100%;
margin: auto;
text-align: center;
}
.GSHTextBox {
width: 100%;
}
.GSHHidden {
display: none;
}
.HMIcon {
display: inline-block;
border: none;
margin-left: 4px;
margin-right: 4px;
}
.HMContainer {
padding: 5px;
padding-top: 10px;
background-color: white;
border-radius: 5px;
width: 100%;
text-align: center;
}
.GSHLabel {
font-weight: normal !important;
}
.GSHInputButton, .GSHInputField {
background-color: black !important;
color: white !important;
border: 1px solid white !important;
border-radius: 10px !important;
position: relative !important;
opacity: 1 !important;
pointer-events: auto !important;
}
.GSHWPBox, .GSHOCContainer, .GSHGOGContainer {
margin-bottom: 10px;
}
`);
// Determine current context (site or groups of sites that behave similarly and can reuse code)
let contexts = {
GithubCustomSearchEngines: ["github.com"],
Startpage: ["startpage.com"],
Steam: ["store.steampowered.com"],
HookshotMedia: ["nintendolife.com", "pushsquare.com", "purexbox.com", "timeextension.com"],
Metacritic: ["metacritic.com"],
EpicGamesStore: ["store.epicgames.com"],
Wikipedia: ["en.wikipedia.org"],
OpenCritic: ["opencritic.com"],
GOGcom: ["gog.com"]
};
let currentContext;
for(const [key, value] of Object.entries(contexts)) {
if(value.some(v => window.location.hostname.includes(v))) {
currentContext = key;
}
}
// Non-"normal" context, i.e. contexts that don't place the actual search elements on the page
if(currentContext == "Startpage") {
if(GSHSettings.OpenCriticHelperEnabled) {
if(new URLSearchParams(document.location.search).get("ocgsh")) {
window.location.href = document.querySelector("a.w-gl__result-title.result-link").href;
}
}
die("Done!");
} else if(currentContext == "GithubCustomSearchEngines") {
let customSearchEngineTable = document.querySelector(".markdown-body > table");
if(customSearchEngineTable) {
let rows = customSearchEngineTable.querySelectorAll("tbody > tr");
for(let i = 0; i < rows.length; i++) {
let installLink = rows[i].querySelector("td:nth-child(2) > a");
let params = new URLSearchParams(installLink.href.substring(12));
let titleCell = rows[i].querySelector("td:nth-child(1)");
titleCell.innerHTML = `<img src="${params.get("icon")}" /> ${titleCell.innerHTML}`;
if(GSHSettings.customProviders[params.get("uuid")]) {
let newSpan = document.createElement("span");
newSpan.innerHTML = "Added to GSH";
installLink.insertAdjacentElement("afterend", newSpan);
installLink.remove();
} else {
installLink.innerHTML = "Add to GSH";
installLink.onclick = function(e){
e.preventDefault();
let params = new URLSearchParams(this.href.substring(12));
let uniqueID = params.get("uuid");
let newCustomProvider = {
uniqueID: uniqueID,
title: params.get("name"),
url: params.get("url"),
icon: params.get("icon"),
enabled: defaultEnabledContextsForNewSearchEngines
};
GSHSettings.customProviders[uniqueID] = newCustomProvider;
GM_setValue("GSHSettings", GSHSettings);
location.reload();
return false;
};
}
}
}
}
// Avoid save data errors when new contexts are added
if(!GSHSettings.defaultProviders[currentContext]) {
GSHSettings.defaultProviders[currentContext] = {
Startpage: {enabled: true},
Google: {enabled: false},
Metacritic: {enabled: true},
OpenCritic: {enabled: true},
eBay: {enabled: true},
eBayUK: {enabled: false}
};
for(const provider in GSHSettings.customProviders) {
GSHSettings.customProviders[provider].enabled[currentContext] = false;
}
}
let providers = [
{
uniqueID: "Startpage",
enabled: GSHSettings.defaultProviders[currentContext].Startpage.enabled,
title: "Startpage",
url: "https://www.startpage.com/sp/search?query=%search%",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAFl3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdbsuMoDP1nFbMEJF5iOZhHVe9glj8HEL5JbtK3u2rissECS+IcSRDT//01zD/4MQVrfEgSc4wWP5995oKO2P3L60nWr6e+2NN5kpt7gCFyaN1+TUXnF8jD1wfHBl3PciM6wqKKjmZV6KZlRqc9Ogk5bzl5VZT77sQs6dHVi3dbdeJyRe9LlS6P7H43jwKfgFILMOSYuyNn11O2B27e7Apahyc5x18Sa5ZI1BMA8rS8G0D7CNATyKdnXtG/ey/gc1G5e8EyKkbovB1AaLwFf0H8YNjdHvHzAA+bvi1H7zGajNH36oqPQDRqRC2w6ajBxAuQu/VZxJVwB/TTujIuscVWUN5stReuSpkYrAxDnhoVGtRXW6nCRc+dE1rmym7JxCXOXMEPOT8vGpxcds0JeKvcDaj0jm9faNnNy14lgeVGmMoEZbTI/nCZ3w3+zWXGqBMisnJjBb94xjXcmMzNJ2aBEBrKW1gAn0vptw/xg1AFg2HBLFhgsddWcQX6ii23eHaYF9DuFCKTmioARLAd4Aw5MGAjuUCRbGJORMBRQFCB5+w8X2CAQuAGJ9k7F9kkFp628U2iNZcDR55i1CYQEVx0CdxkV0CW9wHxk7wghkpwwYcQYkhBTMihRBd9DDHGFGeRK8kln0KKKSVJORVx4iVIlCQiWUrm7FADQ445Zck5l8KmwFCBroL5BZKLL3f5K1zxSpdc+SoV4VN9DTXWVKXmWho311AmWmypScutdDIdlaL7HnrsqUvPvQzE2nDDjzDiSENGHuVmTVn9dv0Fa6Ss8WJqzks3a5CalI4KmuUkTM7AGHsC42kygIDmyZkV8p4nc5Mzmx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TUEiU+moqHDsqq9L+yDWLRbZgiASFH1ZWQl4PzzCu+FRFheXOdJygEdPnvPp8ww3rl3mwvnOtG8ACIJI/4owLCgMCwqCSPn8pLKH2lVbf0wfRj6W5f33grUx9GZYdXuO63Bbh+bmfqW4i+mXR9zr5dF6tJmb17vxvPVEUZTiiQYkwJrxWzOFyQRiZinmJPWXTlfMoPRbiWVKesBKmeb+AglzXYJoGgWrAAAAAElFTkSuQmCC"
},
{
uniqueID: "Google",
enabled: GSHSettings.defaultProviders[currentContext].Google.enabled,
title: "Google",
url: "https://www.google.com/search?q=%search%",
icon: " data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TiyIVh3YQccjQOlkQFXHUKhShQqgVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnHNB028ykkmIuvyr2viKICMIIIS4zy5iTpDR8x9c9Any9S/As/3N/jgG1YDEgIBLPMsO0iTeIpzdtg/M+cZSVZZX4nHjMpAsSP3Jd8fiNc8llgWdGzWxmnjhKLJa6WOliVjY14inimKrplC/kPFY5b3HWqnXWvid/YbigryxzneYIUljEEiSIUFBHBVXYSNCqk2IhQ/tJH/+w65fIpZCrAkaOBdSgQXb94H/wu1urODnhJYWTQOjFcT7iQO8u0Go4zvex47ROgOAzcKV3/LUmMPNJeqOjxY6AwW3g4rqjKXvA5Q4w9GTIpuxKQZpCsQi8n9E35YHILdC/5vXW3sfpA5ClrtI3wMEhMFqi7HWfd/d19/bvmXZ/Py0NcovR+4vhAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gMTEhook//1oQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAIkSURBVDjLnVNNSJRRFD33jXzOZ9EsBF20mYRSI8oR2khKZT+6EYrc1a5SaNVAQRERlC6NNtOoy5YVRUJUoFFWZNZiioaRpJmIIBrNEYoZv5l3T4tmzJ+RogMP7uLe9+457xxgBay1zSSjqjpFcoHkQrG+bq0NYS2QrFLVYZLKtaGqOkjSLc1JaZjkAxFppech93wcuZFbsIl3AAlf/Tb4u7rh39UGcRyQfCoiHSKSFQBQ1WEROa7fZzHfdxGF2GTZLZ3dBxC4cKW08ZAxpkestc3GmNf0PMmcO41CbBJS6YfbG4ZT3wAA8KYSWLh3E4G+AfhqahdZq2ozSEZJMh+/z5kjIaY7Wuh9nF7N3hbKaRJBUWEWXnXRG6li9uEN/itUNVEhIkEA4I/HEDePyqbNy3i39/9cpcXBRh/OHvJDRIIG/4Fs/k9tSKYAQNbvxbxW4cXX1LLm0fPrFk93qAIAUFctpZ9IGREZA4B0zSmczLTiTPwOPswmV736Oa24+7YAANi+6fdFIjIm1tqQMeaNZ/MSHr2Mibk4Kn0Owo1H0VC7BUYEyZlPuDbxDfkvndi50UH/MRdGQFUNlYw0JCInZrMZXBq/ipdz78ty3+rsw0B7D6o3CEgOGmN6S1Z2i1Zu8zSPZ8kJ3E4+QiwzDZJoDARxOLgfe+pa4Fb4QfKJiHSKSHZpmNxiUP4WpujSMKFMnJtIRlQ1QTJHMlesI9baHSv7fwEbaLxgvHm01QAAAABJRU5ErkJggg=="
},
{
uniqueID: "Metacritic",
enabled: GSHSettings.defaultProviders[currentContext].Metacritic.enabled,
title: "Metacritic",
url: "https://www.metacritic.com/search/game/%searchPlus%/results",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAGsXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdbkiupDvxnFXcJCPEQy+EZMTuY5d8ERNnt7jPnTMS4wi5KUCApUw+b8fdf0/wPH8feGR+SxByjxcdnn13BQOz55P1L1u9ffbB38EVungkHEePO5zEVXV8gD68X7hlUv8qN6IwT3YiejfeH18lr3N+Vh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bnZWRERGR3+Qq+fDItlY2gCwn0ChVOatujra2tp4MDPDT5cuAdDb18dnez7lL3ueZDLJxQsX+GL/lzx+VAMenfCkdtclZhdIPGcjJ4ZO0tDQwPmREQ4cOgRAPB4nFrMwvV4yV64wNjaG3/TTEfGwpkFjAKysVVy9dp2pXA6A7Tt28G5jI6dOn+b48WMANIfDuFrjN03KZc2KlQ5oI6MWn5jedaCaG7nnDJ89S9SysG2bXf393Lt/n81dnfx8OY3p84EIrrhcPgYhvzG4ZGPuT6Fnn8ZraEaGh4m0tGDn8/T19jKXz+MxDACKJc1XfSY97S9sNBZZan9ntcPB3X4c8fBJMslULodt2+Tn55eaCyXNzs1eejr/eYF0dCLzEuWJ9Ql8hfT4lElqCB7+7SxyrnC0S03Qw+c7PWztKEDpJcoVw+TgMDlj8nRBoR1F9TKXNas0oaCA46scpopxVjKAEnCNDFAxzv8CTL5eGsMlJD4AAAAASUVORK5CYII="
},
{
uniqueID: "OpenCritic",
enabled: GSHSettings.defaultProviders[currentContext].OpenCritic.enabled,
title: "OpenCritic",
url: "https://www.startpage.com/sp/search?query=site:opencritic.com+%search%&ocgsh=1",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAFi3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja3VdbkuUmDP1nFVkCkgCJ5WAeVdlBlp+DwW7f7pnpnnQ+UrmUDcggJB09uK7/9edwf+DHrMmFqJZySh6/kEPmgoH59cvnm3w433vir8EL3d0fGCRBL2uqZa8voMe3DdcZdLzSne0vbJsR3YzPn8yT57g9hQSdF53CZpT7GqRs+hT12IzqXniKsp9wi7W6OXcvBIWVWsRBwtyFxJ9vWxLIfFgKesGbRPiisIhDFyRvZjDIi3q3Af3TQC9GvkbuvfXv0Tvjc9l0eWfLtG2EwQ8/UHxHl/sYfh4st0T8+qE0rx/U2c8YzcboS7sSEiyatkedxqaLDRYeMLmc2xKa4okY69kymvniKyBvvvoDr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4E/z8ELigmXywd+T4EfzAYqTQQUSsgnzMS7z0GSyogcy8aMigmRCoi3DsJmDIT5jsH9T0F4DoIlC4TwjcM0jkK6zwGPikj1jkK2jkJhi8WuzYNOikkpTIRNygkViwfZi0czjgLWioekjIU+z4E8T0FSCohyjgMrjUQxjcMtTUPjTEVbi4bsjUPaiwaeS8Z8l8RLQAAAAF0Uk5TAEDm2GYAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5gMNFRcybrpEvwAAAGxJREFUGNN9j8EKgDAMQ8f+IdcdhBw8jMgOskHx/z9LN5miE3so9IU2qXP+Ue41H6R1GWm6wLQCJLB0sMJyjHnTcgLBfAKS36AGrOSkEJTyoVRARgQpIJLfYFgZjnbbudvWYIUsd7Ah+u+7bgfhRhSURUVHngAAAABJRU5ErkJggg=="
},
{
uniqueID: "eBay",
enabled: GSHSettings.defaultProviders[currentContext].eBay.enabled,
title: "eBay.com",
url: "https://www.ebay.com/sch/i.html?_nkw=%search%",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TiyIVh3YQccjQOlkQFXHUKhShQqgVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnHNB028ykkmIuvyr2viKICMIIIS4zy5iTpDR8x9c9Any9S/As/3N/jgG1YDEgIBLPMsO0iTeIpzdtg/M+cZSVZZX4nHjMpAsSP3Jd8fiNc8llgWdGzWxmnjhKLJa6WOliVjY14inimKrplC/kPFY5b3HWqnXWvid/YbigryxzneYIUljEEiSIUFBHBVXYSNCqk2IhQ/tJH/+w65fIpZCrAkaOBdSgQXb94H/wu1urODnhJYWTQOjFcT7iQO8u0Go4zvex47ROgOAzcKV3/LUmMPNJeqOjxY6AwW3g4rqjKXvA5Q4w9GTIpuxKQZpCsQi8n9E35YHILdC/5vXW3sfpA5ClrtI3wMEhMFqi7HWfd/d19/bvmXZ/Py0NcovR+4vhAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5gMTDAUsT3CxXAAAANZJREFUOMvtkLEKwjAQhi8u4tADBwVx6JZNEIWAS1YFne4BxLcoLoJbVh19h6ylc8c+QbJlKOLYxTkuKpha0FX8IcuXu4+fA+89hM8Yw4lII2KFiBURaWMMfzfbgiDWWi6lzIUQhXMuds7FQohCSplba3k4XzMSkVZKJSFXSiVEpENeEyBilWXZPORpmi4QsQo5897DeTrzj0bDyeml4XU5vjcFYAzg0Ok9/7bzC6vdoCmMvecfC5ryF/yOoNXvld8uRu1B+RR097vNN5KoPShXo+MaAOAGZ02ixyW3i1cAAAAASUVORK5CYII="
},
{
uniqueID: "eBayUK",
enabled: GSHSettings.defaultProviders[currentContext].eBayUK.enabled,
title: "eBay United Kingdom",
url: "https://www.ebay.co.uk/sch/i.html?_nkw=%search%",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TiyIVh3YQccjQOlkQFXHUKhShQqgVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnHNB028ykkmIuvyr2viKICMIIIS4zy5iTpDR8x9c9Any9S/As/3N/jgG1YDEgIBLPMsO0iTeIpzdtg/M+cZSVZZX4nHjMpAsSP3Jd8fiNc8llgWdGzWxmnjhKLJa6WOliVjY14inimKrplC/kPFY5b3HWqnXWvid/YbigryxzneYIUljEEiSIUFBHBVXYSNCqk2IhQ/tJH/+w65fIpZCrAkaOBdSgQXb94H/wu1urODnhJYWTQOjFcT7iQO8u0Go4zvex47ROgOAzcKV3/LUmMPNJeqOjxY6AwW3g4rqjKXvA5Q4w9GTIpuxKQZpCsQi8n9E35YHILdC/5vXW3sfpA5ClrtI3wMEhMFqi7HWfd/d19/bvmXZ/Py0NcovR+4vhAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5gMTDAUsT3CxXAAAANZJREFUOMvtkLEKwjAQhi8u4tADBwVx6JZNEIWAS1YFne4BxLcoLoJbVh19h6ylc8c+QbJlKOLYxTkuKpha0FX8IcuXu4+fA+89hM8Yw4lII2KFiBURaWMMfzfbgiDWWi6lzIUQhXMuds7FQohCSplba3k4XzMSkVZKJSFXSiVEpENeEyBilWXZPORpmi4QsQo5897DeTrzj0bDyeml4XU5vjcFYAzg0Ok9/7bzC6vdoCmMvecfC5ryF/yOoNXvld8uRu1B+RR097vNN5KoPShXo+MaAOAGZ02ixyW3i1cAAAAASUVORK5CYII="
}
];
let providersList = `<div id="GSHBuiltInSortable">`;
for(let i = 0; i < providers.length; i++) {
providersList += `
<span id="GSHBuiltinSearchSpan_${providers[i].uniqueID}" data-id-builtin="${i}">
${currentContext != "GithubCustomSearchEngines" ? `<span class="GSHBuiltInHandle" title="Drag to reorder search engines">≡</span>
<input class="GSHInputField" type="checkbox" id="GSHBuiltinSearchCheck_${providers[i].uniqueID}"${providers[i].enabled ? " checked" : ""}>` : ""}
<label class="GSHLabel" for="GSHBuiltinSearchCheck_${providers[i].uniqueID}" title="${encodeHTMLEntities(providers[i].url)}"><img src="${providers[i].icon}" width="16px" height="16px" /> ${providers[i].title}</label><br />
</span>
`;
}
providersList += "</div>";
let customProvidersList = `<div id="GSHCustomSortable">`;
let i = 0;
for(const provider in GSHSettings.customProviders) {
customProvidersList += `
<span id="GSHCustomSearchSpan_${GSHSettings.customProviders[provider].uniqueID}" data-id-custom="${provider}">
${currentContext != "GithubCustomSearchEngines" ? `<span class="GSHCustomHandle" title="Drag to reorder search engines">≡</span>
<input class="GSHInputField" type="checkbox" id="GSHCustomSearchCheck_${GSHSettings.customProviders[provider].uniqueID}"${GSHSettings.customProviders[provider].enabled[currentContext] ? " checked" : ""}>` : ""}
<label class="GSHLabel" for="GSHCustomSearchCheck_${GSHSettings.customProviders[provider].uniqueID}" title="${encodeHTMLEntities(GSHSettings.customProviders[provider].url)}"><img src="${GSHSettings.customProviders[provider].icon}" width="16px" height="16px" /> ${GSHSettings.customProviders[provider].title}</label>
<span class="GSHModifyCustomButton" id="GSHEdit_${GSHSettings.customProviders[provider].uniqueID}" title="Edit">[e]</span>
<span class="GSHModifyCustomButton" id="GSHDelete_${GSHSettings.customProviders[provider].uniqueID}" title="Delete">[d]</span><br />
</span>
`;
i++;
}
customProvidersList += "</div>";
let newBox = document.createElement("div");
newBox.innerHTML = `
<div id="GSHOuterDiv">
<span id="GSHToggleButton" title="${GM_info.script.name}">🔍</span>
<div id="GSHInnerDiv" class="GSHHidden">
<div id="GSHLinkbox">[ <a href="https://github.com/xdpirate/GameSearchHelper" class="GSHLink" target="_blank" title="Visit GSH's Github repository">Github</a> | <a href="https://greasyfork.org/en/scripts/441809-game-search-helper/" class="GSHLink" target="_blank" title="Visit GSH's Greasy Fork page">Greasy Fork</a> ]</div>
<div id="GSHHeader">${GM_info.script.name} v${GM_info.script.version}</div>
<div id="GSHSettingsContent">
Current context: <b>${currentContext}</b><br /><br />
<div id="GSHWrapper">
<div class="GSHSearchContainer">
Built-in search engines:<br />
<div id="GSHBuiltInSearchEngines">
${providersList}
</div>
${currentContext != "GithubCustomSearchEngines" ? `Select: <span id="GSHBuiltInSelectAllButton" class="GSHLink">[all]</span> <span id="GSHBuiltInSelectNoneButton" class="GSHLink">[none]</span> <span id="GSHBuiltInSelectInvertButton" class="GSHLink">[invert]</span>` : ""}
</div>
<div class="GSHSearchContainer">
Custom search engines: <span id="GSHNewCustomSearchButton" title="Add a new custom search engine">[new]</span> <a id="GSHGetEnginesButton" href="https://github.com/xdpirate/GameSearchHelper/blob/main/CustomSearchEngines.md" target="_blank" title="Get some premade custom search engines from the Github repository">[get]</a><br />
<div id="GSHCustomSearchEngines">
${customProvidersList}
</div>
${currentContext != "GithubCustomSearchEngines" ? `Select: <span id="GSHCustomSelectAllButton" class="GSHLink">[all]</span> <span id="GSHCustomSelectNoneButton" class="GSHLink">[none]</span> <span id="GSHCustomSelectInvertButton" class="GSHLink">[invert]</span>` : ""}
</div>
</div>
<div id="GSHCustomSearchEngineDiv" class="GSHHidden">
<span id="GSHSearchEngineEditorHeader"></span> <span id="GSHCancelEditButton" title="Cancel editing this custom search engine">[cancel]</span><br /><br />
Display name:<br />
<input type="text" class="GSHTextBox GSHInputField" id="GSHDisplayNameInput" title="The display name of the custom search engine"></input>
<br /><br />
Search URL <span title="Substitute the search term with %search% in the URL. If the site you are searching requires spaces to be replaced with plus-signs, use %searchPlus% instead.">[help]</span>:<br />
<input type="text" class="GSHTextBox GSHInputField" id="GSHSearchURLInput" title="The search URL of the custom search engine"></input>
<br /><br />
Icon (16x16, URL or <a href="https://en.wikipedia.org/wiki/Data_URI_scheme" class="GSHLink" target="_blank">image data URI</a>):<br />
<input type="text" class="GSHTextBox GSHInputField" id="GSHIconInput" title="The URL or data URI of the custom search engine's icon"></input>
<input type="hidden" id="GSHUniqueIDInput"></input>
<input type="hidden" id="GSHModifyMode" value="none"></input>
</div>
<div id="GSHOptionsDiv">
<input type="checkbox" class="GSHInputField" id="GSHOpenCriticHelperCheckbox"${GSHSettings.OpenCriticHelperEnabled ? " checked" : ""}>
<label class="GSHLabel" for="GSHOpenCriticHelperCheckbox">Open Startpage proxy results with one click</label> <sup><a href="https://github.com/xdpirate/GameSearchHelper/blob/main/README.md#options" class="GSHLink" target="_blank" title="Read about this option in the README on Github">?</a></sup><br />
<input type="checkbox" class="GSHInputField" id="GSHStripSpecialCharsCheckbox"${GSHSettings.StripSpecialCharsEnabled ? " checked" : ""}>
<label class="GSHLabel" for="GSHStripSpecialCharsCheckbox">Strip non-ASCII characters from search term (™, ©, etc)</label><br />
</div>
<div id="GSHSaveDiv">
<input type="button" class="GSHInputButton" value="Save and reload" id="GSHSaveButton" title="Save your settings and reload the page for them to take effect"></input>
</div>
</div>
<div>
</div>
`;
document.body.append(newBox);
if(currentContext != "GithubCustomSearchEngines") {
let builtInSortable = new Sortable(document.getElementById("GSHBuiltInSortable"), {
group: "GSHBuiltInSearchEnginesSort",
handle: ".GSHBuiltInHandle",
dataIdAttr: 'data-id-builtin',
store: {
get: function (sortable) {
var order = GM_getValue(`${sortable.options.group.name}_${currentContext}`, false);
return order ? order.split('|') : [];
},
set: function (sortable) {
var order = sortable.toArray();
GM_setValue(`${sortable.options.group.name}_${currentContext}`, order.join('|'));
},
}
});
let customSortable = new Sortable(document.getElementById("GSHCustomSortable"), {
group: "GSHCustomSearchEnginesSort",
handle: ".GSHCustomHandle",
dataIdAttr: 'data-id-custom',
store: {
get: function (sortable) {
var order = GM_getValue(`${sortable.options.group.name}_${currentContext}`, false);
return order ? order.split('|') : [];
},
set: function (sortable) {
var order = sortable.toArray();
GM_setValue(`${sortable.options.group.name}_${currentContext}`, order.join('|'));
},
}
});
document.getElementById("GSHBuiltInSelectAllButton").onclick = function() {
let builtinSearchCheckboxes = document.querySelectorAll(`input[id^="GSHBuiltinSearchCheck_"]`);
for(let i = 0; i < builtinSearchCheckboxes.length; i++) {
builtinSearchCheckboxes[i].checked = true;
}
};
document.getElementById("GSHBuiltInSelectNoneButton").onclick = function() {
let builtinSearchCheckboxes = document.querySelectorAll(`input[id^="GSHBuiltinSearchCheck_"]`);
for(let i = 0; i < builtinSearchCheckboxes.length; i++) {
builtinSearchCheckboxes[i].checked = false;
}
};
document.getElementById("GSHBuiltInSelectInvertButton").onclick = function() {
let builtinSearchCheckboxes = document.querySelectorAll(`input[id^="GSHBuiltinSearchCheck_"]`);
for(let i = 0; i < builtinSearchCheckboxes.length; i++) {
builtinSearchCheckboxes[i].checked = !builtinSearchCheckboxes[i].checked;
}
};
document.getElementById("GSHCustomSelectAllButton").onclick = function() {
let customSearchCheckboxes = document.querySelectorAll(`input[id^="GSHCustomSearchCheck_"]`);
for(let i = 0; i < customSearchCheckboxes.length; i++) {
customSearchCheckboxes[i].checked = true;
}
};
document.getElementById("GSHCustomSelectNoneButton").onclick = function() {
let customSearchCheckboxes = document.querySelectorAll(`input[id^="GSHCustomSearchCheck_"]`);
for(let i = 0; i < customSearchCheckboxes.length; i++) {
customSearchCheckboxes[i].checked = false;
}
};
document.getElementById("GSHCustomSelectInvertButton").onclick = function() {
let customSearchCheckboxes = document.querySelectorAll(`input[id^="GSHCustomSearchCheck_"]`);
for(let i = 0; i < customSearchCheckboxes.length; i++) {
customSearchCheckboxes[i].checked = !customSearchCheckboxes[i].checked;
}
};
}
document.getElementById("GSHSaveButton").onclick = function() {
saveData();
location.reload();
};
document.getElementById("GSHToggleButton").onclick = function() {
document.getElementById('GSHInnerDiv').classList.toggle('GSHHidden');
};
document.getElementById("GSHNewCustomSearchButton").onclick = function() {
let uniqueID = crypto.randomUUID();
document.getElementById("GSHSearchEngineEditorHeader").innerHTML = "New custom search engine";
document.getElementById("GSHDisplayNameInput").value = "";
document.getElementById("GSHSearchURLInput").value = "https://example.com/?s=%search%";
document.getElementById("GSHIconInput").value = "";
document.getElementById("GSHUniqueIDInput").value = uniqueID;
document.getElementById("GSHModifyMode").value = "add";
document.getElementById("GSHCustomSearchEngineDiv").classList.remove("GSHHidden");
};
let editButtons = document.querySelectorAll(`span[id^="GSHEdit_`);
for(let i = 0; i < editButtons.length; i++) {
editButtons[i].onclick = function() {
let uniqueID = this.id.match(/^GSHEdit_(.+)$/)[1];
document.getElementById("GSHSearchEngineEditorHeader").innerHTML = "Editing " + GSHSettings.customProviders[uniqueID].title;
document.getElementById("GSHDisplayNameInput").value = GSHSettings.customProviders[uniqueID].title;
document.getElementById("GSHSearchURLInput").value = GSHSettings.customProviders[uniqueID].url;
document.getElementById("GSHIconInput").value = GSHSettings.customProviders[uniqueID].icon;
document.getElementById("GSHUniqueIDInput").value = uniqueID;
document.getElementById("GSHModifyMode").value = "edit";
document.getElementById("GSHCustomSearchEngineDiv").classList.remove("GSHHidden");
};
}
let deleteButtons = document.querySelectorAll(`span[id^="GSHDelete_`);
for(let i = 0; i < deleteButtons.length; i++) {
deleteButtons[i].onclick = function() {
let uniqueID = this.id.match(/^GSHDelete_(.+)$/)[1];
if(confirm("Are you sure you want to delete this custom search engine?\nName: " + GSHSettings.customProviders[uniqueID].title + "\nUnique ID: " + uniqueID)) {
saveData();
delete GSHSettings.customProviders[uniqueID];
GM_setValue("GSHSettings", GSHSettings);
location.reload();
}
};
}
document.getElementById("GSHCancelEditButton").onclick = function() {
document.getElementById("GSHCustomSearchEngineDiv").classList.add("GSHHidden");
document.getElementById("GSHModifyMode").value = "none";
};
let game = {
set name(name) {
this._name = name.trim();
},
get name() {
if(GSHSettings.StripSpecialCharsEnabled) {
return encodeURIComponent(this._name.replace(/[^\x00-\x7F]/g, "").replace(/ /g, " "));
} else {
return encodeURIComponent(this._name);
}
},
get namePlus() {
if(GSHSettings.StripSpecialCharsEnabled) {
return encodeURIComponent(this._name.replace(/[^\x00-\x7F]/g, "").replace(/ /g, " ")).replace(/%20/g, "+");
} else {
return encodeURIComponent(this._name).replace(/%20/g, "+");
}
},
get namePlusAlphanumericOnly() {
return encodeURIComponent(this._name.replace(/[^A-Za-z0-9 ]/g, "")).replace(/%20/g, "+");
}
};
// "Normal" contexts where search elements will be placed on the page
if(currentContext == "Steam") {
if(window.location.href.includes("/app/")) {
let headerElement = document.getElementById("appHubAppName");
if(headerElement) {
game.name = headerElement.innerHTML;
addGSHBox(game, headerElement, "", "GSHIcon");
} else {
die("Could not find header element");
}
} else if(window.location.href.includes("/bundle/")) {
let multiGames = document.querySelectorAll("div.bundle_package_item");
if(multiGames) {
for(let i = 0; i < multiGames.length; i++) {
let containerElement = multiGames[i].querySelector("div.tab_item_content");
game.name = containerElement.querySelector("div.tab_item_name").innerHTML;
let newAdjElem = multiGames[i].insertAdjacentElement("afterend", document.createElement("div"));
addGSHBox(game, newAdjElem, "GSHSteamBundleContainer", "GSHIcon");
}
}
}
} else if(currentContext == "HookshotMedia") {
let gameOverview, headerElement;
if(window.location.href.includes("/games/")) {
headerElement = document.querySelector("div.info");
if(headerElement) {
game.name = headerElement.querySelector("h1.title > a").innerHTML.match(/^(.+) \(.+\)$/)[1];
addGSHBox(game, headerElement, "HMContainer", "HMIcon");
} else {
die("Could not find header element");
}
} else {
gameOverview = document.getElementById("game-overview");
if(gameOverview) {
headerElement = gameOverview.querySelector("header.widget-header");
game.name = gameOverview.querySelector("div.body > div.items > div.item > p.definition > a").innerHTML;
addGSHBox(game, headerElement, "HMContainer", "HMIcon");
} else {
// No single game overview found, is there a "featured games" multi-game section?
let multiGames = document.querySelector("section.block.related-games");
if(multiGames) {
let games = multiGames.querySelectorAll("li.item");
for(let i = 0; i < games.length; i++) {
game.name = games[i].querySelector("h2.heading > a").innerHTML.match(/(.*?)</)[1].trim();
addGSHBox(game, games[i], "HMContainer", "HMIcon");
}
} else {
die("Could not find game overview or featured games");
}
}
}
} else if(currentContext == "Metacritic") {
if(window.location.href == "https://www.metacritic.com/game" || window.location.href.match(/\/game\/(?!legacy)([A-Za-z0-9\-]+)$/)) {
// Game home page or any system's game home page, /game/legacy is excluded because it acts like a browse page
let mainBox = document.getElementById("main");
if(mainBox) {
let observer = new MutationObserver(function(event) {
let bodyBox = document.getElementById("main").querySelector("div.body_wrap.has_genre_nav");
if(bodyBox) {
if(!bodyBox.querySelector(".GSHIcon")) { // Avoids infinite recursion
let multiGames = bodyBox.querySelectorAll(`table.clamp-list > tbody > tr:not(.spacer)`);
if(multiGames) {
for(let i = 0; i < multiGames.length; i++) {
let headerElement = multiGames[i].querySelector("td.clamp-summary-wrap > a.title");
game.name = headerElement.querySelector("h3").innerHTML;
let newAdjElem = headerElement.insertAdjacentElement("afterend", document.createElement("div"));
addGSHBox(game, newAdjElem, "GSHMetacriticListContainer", "GSHIcon");
}
}
}
}
});
observer.observe(mainBox, {subtree: true, childList: true});
let multiGames = document.querySelectorAll(`table.clamp-list > tbody > tr:not(.spacer)`);
if(multiGames) {
for(let i = 0; i < multiGames.length; i++) {
let headerElement = multiGames[i].querySelector("td.clamp-summary-wrap > a.title");
if(headerElement) {
game.name = headerElement.querySelector("h3").innerHTML;
let newAdjElem = headerElement.insertAdjacentElement("afterend", document.createElement("div"));
addGSHBox(game, newAdjElem, "GSHMetacriticListContainer", "GSHIcon");
}
}
} else {
die("Could not find game elements");
}
}
} else if(window.location.href.includes("/browse/games/") || window.location.href.endsWith("/game/legacy")) {
// Any game list / browse page
let multiGames = document.querySelectorAll(`table.clamp-list > tbody > tr:not(.spacer)`);
if(multiGames) {
for(let i = 0; i < multiGames.length; i++) {
let headerElement = multiGames[i].querySelector("td.clamp-summary-wrap > a.title");
game.name = headerElement.querySelector("h3").innerHTML;
let newAdjElem = headerElement.insertAdjacentElement("afterend", document.createElement("div"));
addGSHBox(game, newAdjElem, "GSHMetacriticListContainer", "GSHIcon");
}
} else {
die("Could not find game elements");
}
} else if(window.location.href.match(/\/game\/([A-Za-z0-9\-]+)\/([A-Za-z0-9\-]+)$/)) {
// Any specific game page
let titleElement = document.querySelector("div.product_title");
if(titleElement) {
game.name = titleElement.querySelector("a > h1").innerHTML;
addGSHBox(game, titleElement, "", "GSHIcon");
} else {
die("Could not get title element");
}
}
} else if(currentContext == "EpicGamesStore") {
let observer = new MutationObserver(function(event) {
if(document.documentElement) {
let titleElement = document.querySelector(`div[data-component="PDPTitleHeader"] > span[data-component="Text"]`);
if(titleElement) {
if(titleElement.GSHDetected != true) {
titleElement.GSHDetected = true;
game.name = titleElement.innerHTML;
addGSHBox(game, titleElement.insertAdjacentElement("afterend", document.createElement("div")), "", "GSHIcon");
}
}
}
});
observer.observe(document.documentElement, {subtree: true, childList: true});
} else if(currentContext == "Wikipedia") {
let blacklistedCategories = ["fictional video games", "nintendo hardware", "video game locations"];
let categories = document.querySelectorAll("div#catlinks > div#mw-normal-catlinks > ul > li > a");
let isGame = false;
for(let i = 0; i < categories.length; i++) {
let category = categories[i].innerHTML.toLowerCase();
if(blacklistedCategories.includes(category) || category.includes("characters in video games") || category.includes("about video games")) {
isGame = false;
break;
}
if(category.includes("video games") || category.includes("video game franchises")) {
isGame = true;
}
}
if(isGame) {
let headerElement = document.querySelector("h1#firstHeading");
game.name = headerElement.querySelector("i").innerHTML;
addGSHBox(game, headerElement.insertAdjacentElement("afterend", document.createElement("div")), "GSHWPBox", "GSHIcon");
}
} else if(currentContext == "OpenCritic") {
let observer = new MutationObserver(function(event) {
if(document.documentElement) {
let titleElement = document.querySelector("h1.mb-0");
if(titleElement) {
if(titleElement.GSHDetected != true) {
titleElement.GSHDetected = true;
game.name = titleElement.innerHTML;
addGSHBox(game, titleElement.insertAdjacentElement("afterend", document.createElement("div")), "GSHOCContainer", "GSHIcon");
}
let titleUpdateObserver = new MutationObserver(function(event) {
let titleElement = document.querySelector("h1.mb-0");
document.getElementsByClassName("GSHOCContainer")[0].parentNode.remove();
game.name = titleElement.innerHTML;
addGSHBox(game, titleElement.insertAdjacentElement("afterend", document.createElement("div")), "GSHOCContainer", "GSHIcon");
});
titleUpdateObserver.observe(titleElement, {subtree: true, characterData: true});
}
}
});
observer.observe(document.documentElement, {subtree: true, childList: true});
} else if(currentContext == "GOGcom") {
let titleElement = document.querySelector(`div.productcard-basics > h1.productcard-basics__title`);
if(titleElement) {
titleElement.GSHDetected = true;
game.name = titleElement.innerHTML;
addGSHBox(game, titleElement.insertAdjacentElement("afterend", document.createElement("div")), "GSHGOGContainer", "GSHIcon");
}
}
saveData();
function addGSHBox(game, containerElement, boxClass, iconClass) {
let GSHBox = document.createElement("div");
if(boxClass !== "") {
GSHBox.classList.add(boxClass);
}
let builtinSortOrder = GM_getValue(`GSHBuiltInSearchEnginesSort_${currentContext}`, false);
if(!builtinSortOrder) {
builtinSortOrder = [0, 1, 2, 3, 4, 5];
} else {
builtinSortOrder = builtinSortOrder.split("|");
}
for(let i = 0; i < providers.length; i++) {
if(providers[builtinSortOrder[i]].enabled) {
let searchLink = document.createElement("span");
searchLink.classList.add(iconClass);
let title = providers[builtinSortOrder[i]].title;
let searchURL = providers[builtinSortOrder[i]].url.replace("%search%", game.name).replace("%searchPlus%", game.namePlus).replace("%searchPlusAlpha%", game.namePlusAlphanumericOnly);
let icon = providers[builtinSortOrder[i]].icon;
searchLink.innerHTML = `
<a target="_blank" title="${title}" href="${searchURL}"><img src="${icon}" width="16px" height="16px" /></a>
`;
GSHBox.append(searchLink);
}
}
let i = 0;
let customProvidersArray = [];
for(const provider in GSHSettings.customProviders) {
customProvidersArray[i] = provider;
i++;
}
let customSortOrder = GM_getValue(`GSHCustomSearchEnginesSort_${currentContext}`, false);
if(customSortOrder) {
customSortOrder = customSortOrder.split("|");
}
for(let i = 0; i < customProvidersArray.length; i++) {
if(customSortOrder) {
provider = customSortOrder[i];
} else {
provider = customProvidersArray[i];
}
if(GSHSettings.customProviders[provider]) {
if(GSHSettings.customProviders[provider].enabled[currentContext]) {
let searchLink = document.createElement("span");
searchLink.classList.add(iconClass);
let title = GSHSettings.customProviders[provider].title;
let searchURL = GSHSettings.customProviders[provider].url.replace("%search%", game.name).replace("%searchPlus%", game.namePlus).replace("%searchPlusAlpha%", game.namePlusAlphanumericOnly);
let icon = GSHSettings.customProviders[provider].icon;
searchLink.innerHTML = `
<a target="_blank" title="${title}" href="${searchURL}"><img src="${icon}" width="16px" height="16px" /></a>
`;
GSHBox.append(searchLink);
}
}
}
containerElement.append(GSHBox);
}
function saveData() {
if(currentContext != "GithubCustomSearchEngines") {
let builtinSearchCheckboxes = document.querySelectorAll(`input[id^="GSHBuiltinSearchCheck_"]`);
for(let i = 0; i < builtinSearchCheckboxes.length; i++) {
let uniqueID = builtinSearchCheckboxes[i].id.match(/GSHBuiltinSearchCheck_(.+)$/)[1];
GSHSettings.defaultProviders[currentContext][uniqueID].enabled = builtinSearchCheckboxes[i].checked;
}
let customSearchCheckboxes = document.querySelectorAll(`input[id^="GSHCustomSearchCheck_"]`);
for(let i = 0; i < customSearchCheckboxes.length; i++) {
let uniqueID = customSearchCheckboxes[i].id.match(/GSHCustomSearchCheck_(.+)$/)[1];
GSHSettings.customProviders[uniqueID].enabled[currentContext] = customSearchCheckboxes[i].checked;
}
}
if(!document.getElementById("GSHCustomSearchEngineDiv").classList.contains("GSHHidden")) {
let modifyMode = document.getElementById("GSHModifyMode").value;
if(modifyMode == "add") {
let uniqueID = document.getElementById("GSHUniqueIDInput").value;
let newCustomProvider = {
uniqueID: uniqueID,
title: document.getElementById("GSHDisplayNameInput").value,
url: document.getElementById("GSHSearchURLInput").value,
icon: document.getElementById("GSHIconInput").value,
enabled: defaultEnabledContextsForNewSearchEngines
};
GSHSettings.customProviders[uniqueID] = newCustomProvider;
} else if(modifyMode == "edit") {
let uniqueID = document.getElementById("GSHUniqueIDInput").value;
GSHSettings.customProviders[uniqueID].title = document.getElementById("GSHDisplayNameInput").value;
GSHSettings.customProviders[uniqueID].url = document.getElementById("GSHSearchURLInput").value;
GSHSettings.customProviders[uniqueID].icon = document.getElementById("GSHIconInput").value;
}
}
GSHSettings.OpenCriticHelperEnabled = document.getElementById("GSHOpenCriticHelperCheckbox").checked;
GSHSettings.StripSpecialCharsEnabled = document.getElementById("GSHStripSpecialCharsCheckbox").checked;
GM_setValue("GSHSettings", GSHSettings);
}
function encodeHTMLEntities(text) { // modified from SO answer to include the full range
text = text.replace(/[\u0000-\u9999<>\&]/g, function(i) {
return '&#'+i.charCodeAt(0)+';';
});
return text;
}
function die(errorMsg) {
throw `[${GM_info.script.name}] ${errorMsg} (${currentContext})`;
}