Last active
May 11, 2024 06:30
-
-
Save kodawah/93ae167d22faf3df8298102c98392fc8 to your computer and use it in GitHub Desktop.
This file contains 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
javascript:(function() { | |
var card = prompt("Card Name"); | |
var sites = []; | |
sites.push("https://www.cardkingdom.com/catalog/search?search=header&filter%5Bname%5D="); | |
sites.push("https://store.channelfireball.com/products/search?q="); | |
sites.push("https://www.coolstuffinc.com/main_search.php?pa=searchOnName&page=1&resultsPerPage=25&q="); | |
sites.push("https://www.miniaturemarket.com/searchresults?q="); | |
sites.push("https://www.starcitygames.com/results?name="); | |
sites.push("https://shop.tcgplayer.com/productcatalog/product/show?IsProductNameExact=false&ProductName="); | |
sites.push("https://abugames.com/magic-the-gathering/singles?search="); | |
sites.push("https://www.trollandtoad.com/category.php?selected-cat=0&search-words="); | |
sites.push("https://www.amazon.com/s?k="); | |
/* .ca */ | |
sites.push("https://www.facetofacegames.com/products/search?q="); | |
sites.push("https://jittedivision.crystalcommerce.com/products/search?q="); | |
sites.push("https://www.magicstronghold.com/store/search/"); | |
sites.push("http://www.kanatacg.com/products/search?query="); | |
sites.push("https://www.cartamagica.com/products/search?q="); | |
/* .jp */ | |
sites.push("https://www.hareruyamtg.com/en/products/search?product="); | |
sites.push("https://tokyomtg.com/cardpage.html?p=q&l=e&r=h&query="); | |
sites.push("http://www.johnnymagic.jp/product-list?keyword="); | |
/* .uk */ | |
sites.push("http://www.manaleak.com/magic-the-gathering/advanced_search_result.php?keywords="); | |
sites.push("https://www.magicmadhouse.co.uk/search/"); | |
/* .pl */ | |
sites.push("https://mtgspot.pl/wyniki-wysukiwania/"); | |
/* .nl */ | |
sites.push("https://www.bazaarofmagic.eu/nl-NL/query?tab=singles&variant=nonfoil&name="); | |
/* .us */ | |
sites.push("http://shop.strikezoneonline.com/TUser?MC=CUSTS&MF=B&BUID=637&ST=D&T="); | |
sites.push("https://www.fullgripgames.com/products/search?c=1&q="); | |
sites.push("http://www.pastimes.net/products/search?q="); | |
sites.push("http://gamersgambitct.tcgplayerpro.com/search?prd="); | |
sites.push("https://www.competitivecardshack.com/products/search?q="); | |
sites.push("https://www.boarshatgaming.com/products/search?q="); | |
sites.push("https://www.capefeargames.com/products/search?q="); | |
sites.push("https://www.mtgseattle.com/products/search?q="); | |
sites.push("http://www.mtgmintcard.com/mtg/singles/search?ed=0&action=normal_search&keywords="); | |
sites.push("https://www.cardtitan.com/advanced_search?search[fuzzy_search]="); | |
sites.push("http://www.theendgames.co/products/search?q="); | |
sites.push("https://www.dollys.ca/products/search?q="); | |
sites.push("https://www.amazingmtg.com/products/search?q="); | |
/* Reverse so they are in the same order as above */ | |
sites.reverse().forEach(openWindow); | |
function openWindow(value, index, array) { | |
var theCard = trimmedCard; | |
if (value.includes("amazon.com") || value.includes("ebay.com")) { | |
theCard += " mtg"; | |
theCard = encodeURIComponent(theCard); | |
} else if (value.includes("magicmadhouse.co.uk")) { | |
theCard = theCard.replace(/ /g, "-").replace(/,/g, "").replace(/'/g, ""); | |
} else if (value.includes("mtgspot.pl")) { | |
theCard = btoa("{\"s_title\":\"" + theCard + "\",\"id_expansion\":\"\",\"expansion_title\":\"\",\"rarity\":\"\",\"colors\":[],\"mana_cost\":\"\",\"c_mana_cost_sign\":\"=\",\"c_mana_cost\":\"\",\"power_sign\":\"=\",\"power\":\"\",\"toughness_sign\":\"=\",\"toughness\":\"\",\"types\":\"\"}") | |
} else { | |
theCard = encodeURIComponent(theCard); | |
} | |
var url = value + theCard; | |
window.open(url, '_blank'); | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment