From 338037e83412e2087472c1f4dd1aa3b4afe1feb5 Mon Sep 17 00:00:00 2001 From: Step7750 Date: Tue, 1 Aug 2023 19:56:42 -0600 Subject: [PATCH 1/3] `CSGOFloat` -> `CSFloat` --- README.md | 6 +++--- manifest.json | 4 ++-- src/README.md | 14 ++++++------- src/background_ff.html | 2 +- src/global.css | 14 ++++++------- src/lib/bridge/client.ts | 2 +- src/lib/bridge/handlers/execute_script.ts | 4 ++-- src/lib/bridge/types.ts | 2 +- .../components/common/item_holder_metadata.ts | 6 +++--- src/lib/components/custom.ts | 2 +- src/lib/components/filter/filter_container.ts | 4 ++-- src/lib/components/filter/filter_creator.ts | 6 +++--- src/lib/components/filter/filter_help.ts | 2 +- src/lib/components/filter/filter_view.ts | 8 ++++---- .../inventory/selected_item_info.ts | 12 +++++------ src/lib/components/market/helpers.ts | 8 ++++---- src/lib/components/market/item_row_wrapper.ts | 2 +- src/lib/components/market/skin_viewer.ts | 10 +++++----- src/lib/components/market/sort_listings.ts | 8 ++++---- src/lib/components/market/utility_belt.ts | 12 +++++------ .../components/trade_history/trade_proof.ts | 6 +++--- src/lib/components/trade_offer/auto_fill.ts | 20 ++++++++++--------- src/lib/page_scripts/utils.ts | 11 +++++----- src/lib/types/extension_globals.ts | 4 ++-- src/lib/types/float_market.ts | 2 +- src/lib/types/steam.d.ts | 2 +- src/lib/utils/skin.ts | 2 +- webpack.config.js | 2 +- 28 files changed, 90 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index 40749788..a45bb34c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@

- - + +

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Step7750/CSGOFloat/LICENSE) -[![Website](https://img.shields.io/website-up-down-green-red/https/csgofloat.com.svg)](https://csgofloat.com) +[![Website](https://img.shields.io/website-up-down-green-red/https/csfloat.com.svg)](https://csfloat.com) [![Chrome Web Store](https://img.shields.io/chrome-web-store/d/jjicbefpemnphinccgikpdaagjebbnhg.svg)](https://chrome.google.com/webstore/detail/csgofloat-market-checker/jjicbefpemnphinccgikpdaagjebbnhg) [![Chrome Web Store](https://img.shields.io/chrome-web-store/stars/jjicbefpemnphinccgikpdaagjebbnhg.svg)](https://chrome.google.com/webstore/detail/csgofloat-market-checker/jjicbefpemnphinccgikpdaagjebbnhg) [![Chrome Web Store](https://img.shields.io/chrome-web-store/rating-count/jjicbefpemnphinccgikpdaagjebbnhg.svg)](https://chrome.google.com/webstore/detail/csgofloat-market-checker/jjicbefpemnphinccgikpdaagjebbnhg) diff --git a/manifest.json b/manifest.json index 6828f06b..1b3a4511 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, - "name": "CSGOFloat Market Checker", - "short_name": "CSGOFloat", + "name": "CSFloat Market Checker", + "short_name": "CSFloat", "version": "3.1.0", "description": "Dedicated API for fetching the float value, paint seed, and screenshots of CS:GO items on the Steam Market or Inventories", "icons": { diff --git a/src/README.md b/src/README.md index ad6500f5..b5071852 100644 --- a/src/README.md +++ b/src/README.md @@ -33,7 +33,7 @@ Typically, only being able to access the DOM (ie. HTML env) of the page is not e changes to the page for your extension. Historically, many extensions would use on-demand script injection into the page in order to retrieve a variable, -call a function, or mutate page-JS state. This is what our extension [used to do](https://github.com/csgofloat/extension/blob/ca85d56e3b268330537daf6bc6be7837213cc7a4/lib/bridge.js) +call a function, or mutate page-JS state. This is what our extension [used to do](https://github.com/csfloat/extension/blob/ca85d56e3b268330537daf6bc6be7837213cc7a4/lib/bridge.js) and what others like CSGO-Trader [currently do](https://github.com/gergelyszabo94/csgo-trader-extension/blob/216df0e4eb6c481c893426d2324b93da026e92d3/extension/src/utils/injection.js#L4) (as of 2022/10/01). Pros @@ -50,13 +50,13 @@ Cons Since Steam's Content Security Policy restrictions are applied to the content script's AJAX requests, typically event messaging to the background script is done. The background script is not restricted and will perform the request for us and send back the result. -This is the mechanism you'd need to use whenever you fetch an HTTPS resource (like `https://api.csgofloat.com`). +This is the mechanism you'd need to use whenever you fetch an HTTPS resource (like `https://api.csfloat.com`). A naiive example would be: `content_script.js` ```javascript -chrome.runtime.sendMessage({type1: 'https://api.csgofloat.com/?url=steam://....'}, (response) => { +chrome.runtime.sendMessage({type1: 'https://api.csfloat.com/?url=steam://....'}, (response) => { // do something }); ``` @@ -81,11 +81,11 @@ Cons * Type-checking is _hard_, easy to lose context of what you expect a request to return -### How CSGOFloat's Extension Works +### How CSFloat's Extension Works #### Accessing the Page's JS runtime -Almost the entirety of CSGOFloat's Extension runs within the page context and **not** the content script. +Almost the entirety of CSFloat's Extension runs within the page context and **not** the content script. This allows us to easily access page globals, call Steam's functions, override their functions. Additionally, this gives a clear consistent environment to think about as a developer. @@ -99,7 +99,7 @@ script. This effectively tells Chrome to re-run the script, but in the page inst Now that our scripts run within the page, we still want to be able to make AJAX requests to other domains outside of Steam's Content Security Policy. -CSGOFloat's Extension similarly uses the mechanism of making the actual request in a background script, but +CSFloat's Extension similarly uses the mechanism of making the actual request in a background script, but creates an abstraction layer on top. Dubbed the "bridge", it allows for **type safe** request and response handling between the page and background script. @@ -117,7 +117,7 @@ You can find more details in `/bridge`. When try to mutate a page, you also want the ability to create new UI components, potentially _reusing_ the styling on the page. For example, you'd create a component that shows the float for a given item. -CSGOFloat's Extension uses Web Components via the library [Lit](https://lit.dev/). Each UI mutation is a separate +CSFloat's Extension uses Web Components via the library [Lit](https://lit.dev/). Each UI mutation is a separate component that has its own state management and rendering logic. You can find our components in `/components`. diff --git a/src/background_ff.html b/src/background_ff.html index fbc3d624..a4f7f7c0 100644 --- a/src/background_ff.html +++ b/src/background_ff.html @@ -5,7 +5,7 @@ - CSGOFloat Background + CSFloat Background diff --git a/src/global.css b/src/global.css index aa078347..c43d5550 100644 --- a/src/global.css +++ b/src/global.css @@ -1,8 +1,8 @@ -.csgofloat-stickers-container { +.csfloat-stickers-container { float: right; } -.csgofloat-easy-inspect { +.csfloat-easy-inspect { position: absolute; height: 74px; width: 74px; @@ -15,18 +15,18 @@ font-size: 20px; } -.market_recent_listing_row:hover .csgofloat-easy-inspect { +.market_recent_listing_row:hover .csfloat-easy-inspect { display: initial; } /* Powers animation for shining float boxes */ -.csgofloat-shine { +.csfloat-shine { overflow: hidden; } /* Based on https://jsfiddle.net/AntonTrollback/nqQc7/ */ -.csgofloat-shine:after { - animation: csgofloat-shine-frames 4s ease-in-out infinite; +.csfloat-shine:after { + animation: csfloat-shine-frames 4s ease-in-out infinite; content: ''; position: absolute; top: -110%; @@ -46,7 +46,7 @@ ); } -@keyframes csgofloat-shine-frames { +@keyframes csfloat-shine-frames { 50% { opacity: 1; top: -30%; diff --git a/src/lib/bridge/client.ts b/src/lib/bridge/client.ts index 305d6363..d3287e01 100644 --- a/src/lib/bridge/client.ts +++ b/src/lib/bridge/client.ts @@ -25,7 +25,7 @@ export async function ClientSend(handler: RequestHandler, return new Promise((resolve, reject) => { // @ts-ignore Bad types runtimeNamespace().runtime.sendMessage( - window.CSGOFLOAT_EXTENSION_ID || chrome.runtime.id, + window.CSFLOAT_EXTENSION_ID || chrome.runtime.id, bundle, // @ts-ignore Bad types (resp: InternalResponseBundle) => { diff --git a/src/lib/bridge/handlers/execute_script.ts b/src/lib/bridge/handlers/execute_script.ts index 0d1a3cce..2d60d880 100644 --- a/src/lib/bridge/handlers/execute_script.ts +++ b/src/lib/bridge/handlers/execute_script.ts @@ -17,8 +17,8 @@ export const ExecuteScriptOnPage = new PrivilegedHandler( world: 'MAIN', args: [chrome.runtime.id, chrome.runtime.getURL('src/model_frame.html')], func: function ExtensionId(extensionId, modelFrameUrl) { - window.CSGOFLOAT_EXTENSION_ID = extensionId; - window.CSGOFLOAT_MODEL_FRAME_URL = modelFrameUrl; + window.CSFLOAT_EXTENSION_ID = extensionId; + window.CSFLOAT_MODEL_FRAME_URL = modelFrameUrl; }, }); diff --git a/src/lib/bridge/types.ts b/src/lib/bridge/types.ts index bf56f8bc..e4709906 100644 --- a/src/lib/bridge/types.ts +++ b/src/lib/bridge/types.ts @@ -7,7 +7,7 @@ export interface RequestHandler { } export enum Version { - V1 = 'CSGOFLOAT_V1', + V1 = 'CSFLOAT_V1', } export interface InternalRequestBundle { diff --git a/src/lib/components/common/item_holder_metadata.ts b/src/lib/components/common/item_holder_metadata.ts index 8b6d0cd9..37ee35ea 100644 --- a/src/lib/components/common/item_holder_metadata.ts +++ b/src/lib/components/common/item_holder_metadata.ts @@ -35,7 +35,7 @@ export abstract class ItemHolderMetadata extends FloatElement { -webkit-text-fill-color: transparent; } - .csgofloat-shine-fade-text { + .csfloat-shine-fade-text { font-weight: 1000; -webkit-text-stroke: 1px black; } @@ -83,7 +83,7 @@ export abstract class ItemHolderMetadata extends FloatElement { ${formatSeed(this.itemInfo)} ${fadePercentage !== undefined - ? html`(${floor(fadePercentage, 1)}%)` : nothing} { return html`
- +
`; })} - + `; } diff --git a/src/lib/components/filter/filter_creator.ts b/src/lib/components/filter/filter_creator.ts index 456fd85d..17abe5ea 100644 --- a/src/lib/components/filter/filter_creator.ts +++ b/src/lib/components/filter/filter_creator.ts @@ -90,14 +90,14 @@ export class FilterCreator extends FloatElement { > ${this.error ? 'X' : '✓'} - + >
${(this.expression && this.error) || nothing}
- + `; } diff --git a/src/lib/components/filter/filter_help.ts b/src/lib/components/filter/filter_help.ts index f806f255..ad1287d4 100644 --- a/src/lib/components/filter/filter_help.ts +++ b/src/lib/components/filter/filter_help.ts @@ -11,7 +11,7 @@ export class FilterHelp extends FloatElement { Note: If multiple filters match an item, it will be highlighted with the average colour

- New: You can now filter based on FloatDB ranks and item price!

+ New: You can now filter based on FloatDB ranks and item price!

Examples:
    diff --git a/src/lib/components/filter/filter_view.ts b/src/lib/components/filter/filter_view.ts index 80282fca..bc1dbd85 100644 --- a/src/lib/components/filter/filter_view.ts +++ b/src/lib/components/filter/filter_view.ts @@ -46,18 +46,18 @@ export class FilterView extends FloatElement { value="${this.filter.getColour()}" />
    ${this.filter.getExpression()}
    - - + + > `; } diff --git a/src/lib/components/inventory/selected_item_info.ts b/src/lib/components/inventory/selected_item_info.ts index 6edeef59..1a4acd85 100644 --- a/src/lib/components/inventory/selected_item_info.ts +++ b/src/lib/components/inventory/selected_item_info.ts @@ -97,7 +97,7 @@ export class SelectedItemInfo extends FloatElement {
    Float: ${this.itemInfo.floatvalue.toFixed(14)} ${renderClickableRank(this.itemInfo)}
    Paint Seed: ${formatSeed(this.itemInfo)}
    ${fadePercentage !== undefined ? html`
    Fade: ${floor(fadePercentage, 5)}%
    ` : nothing} - ${this.renderListOnCSGOFloat()} ${this.renderFloatMarketListing()} + ${this.renderListOnCSFloat()} ${this.renderFloatMarketListing()} `; } @@ -109,8 +109,8 @@ export class SelectedItemInfo extends FloatElement { return html`
    - - + + Listed for $${(this.stallListing.price / 100).toFixed(2)} @@ -120,7 +120,7 @@ export class SelectedItemInfo extends FloatElement { `; } - renderListOnCSGOFloat(): TemplateResult<1> { + renderListOnCSFloat(): TemplateResult<1> { if (this.stallListing) { // Don't tell them to list it if it's already listed... return html``; @@ -133,9 +133,9 @@ export class SelectedItemInfo extends FloatElement { return html` `; diff --git a/src/lib/components/market/helpers.ts b/src/lib/components/market/helpers.ts index 22d67e85..ab698b8b 100644 --- a/src/lib/components/market/helpers.ts +++ b/src/lib/components/market/helpers.ts @@ -21,13 +21,13 @@ export function getMarketInspectLink(listingId: string): string | undefined { * Inlines stickers into a market item row HTML showing the image and wear * * @param itemNameBlock Element with `.market_listing_item_name_block` - * @param itemInfo Item Info for the item from csgofloat API + * @param itemInfo Item Info for the item from csfloat API * @param asset Steam Asset for the item */ export function inlineStickers(itemNameBlock: JQuery, itemInfo: ItemInfo, asset: rgAsset) { if (!itemNameBlock) return; - if (itemNameBlock.find('.csgofloat-stickers-container').length) { + if (itemNameBlock.find('.csfloat-stickers-container').length) { // Don't inline stickers if they're already inlined return; } @@ -67,7 +67,7 @@ export function inlineStickers(itemNameBlock: JQuery, itemInfo: ItemInf .reduce((acc, v) => acc + v, ''); itemNameBlock.prepend(` -
    +
    ${result}
    `); @@ -82,6 +82,6 @@ export function inlineEasyInspect(itemImgContainer: JQuery, inspectLink if (!itemImgContainer || !inspectLink) return; itemImgContainer.append(` - 🔍 + 🔍 `); } diff --git a/src/lib/components/market/item_row_wrapper.ts b/src/lib/components/market/item_row_wrapper.ts index b761a10c..e3f79c4a 100644 --- a/src/lib/components/market/item_row_wrapper.ts +++ b/src/lib/components/market/item_row_wrapper.ts @@ -154,7 +154,7 @@ export class ItemRowWrapper extends FloatElement {
    `; } else if (this.error) { - return html`
    CSGOFloat ${this.error}
    `; + return html`
    CSFloat ${this.error}
    `; } else { return html`
    Loading...
    `; } diff --git a/src/lib/components/market/skin_viewer.ts b/src/lib/components/market/skin_viewer.ts index 3909c746..94b72c39 100644 --- a/src/lib/components/market/skin_viewer.ts +++ b/src/lib/components/market/skin_viewer.ts @@ -97,22 +97,22 @@ export class SkinViewer extends FloatElement { return html`
    - + > - + >
    ${this.showing === Showing.MODEL && this.response?.modelLink ? html`
    ` diff --git a/src/lib/components/market/sort_listings.ts b/src/lib/components/market/sort_listings.ts index 6680fda7..052ca77e 100644 --- a/src/lib/components/market/sort_listings.ts +++ b/src/lib/components/market/sort_listings.ts @@ -58,16 +58,16 @@ export class SortListings extends FloatElement { protected render(): HTMLTemplateResult { return html` - + > ${this.isFadeSkin - ? html`` + >` : nothing} `; } diff --git a/src/lib/components/market/utility_belt.ts b/src/lib/components/market/utility_belt.ts index f5754185..f513f385 100644 --- a/src/lib/components/market/utility_belt.ts +++ b/src/lib/components/market/utility_belt.ts @@ -38,16 +38,16 @@ export class UtilityBelt extends FloatElement { protected render(): HTMLTemplateResult { return html` - + `; } diff --git a/src/lib/components/trade_history/trade_proof.ts b/src/lib/components/trade_history/trade_proof.ts index 666d58ca..014badee 100644 --- a/src/lib/components/trade_history/trade_proof.ts +++ b/src/lib/components/trade_history/trade_proof.ts @@ -23,11 +23,11 @@ export class TradeProof extends FloatElement { return this.proofNumber ? html` Proof: ${this.proofNumber} ` : html` - - + `; } diff --git a/src/lib/components/trade_offer/auto_fill.ts b/src/lib/components/trade_offer/auto_fill.ts index b2a28dca..772ca485 100644 --- a/src/lib/components/trade_offer/auto_fill.ts +++ b/src/lib/components/trade_offer/auto_fill.ts @@ -58,7 +58,7 @@ export class AutoFill extends FloatElement { this.pendingTradesResponse = await ClientSend(FetchPendingTrades, {}); } catch (e: any) { console.error( - 'failed to fetch pending trades on CSGOFloat Market, they are likely not logged in.', + 'failed to fetch pending trades on CSFloat Market, they are likely not logged in.', e.toString() ); } @@ -74,7 +74,7 @@ export class AutoFill extends FloatElement { renderAutoFillDialog(trade: Trade): HTMLTemplateResult { if (trade.state !== TradeState.PENDING) { - // Make sure they accepted the sale on CSGOFloat first + // Make sure they accepted the sale on CSFloat first return html``; } @@ -97,10 +97,10 @@ export class AutoFill extends FloatElement { ${item.market_hash_name} ${this.getSaleInfo(item)}
    - + > `; } @@ -118,9 +118,9 @@ export class AutoFill extends FloatElement { } /** - * Show a warning to users if trade includes item with csgofloat note that doesn't match an existing sale + * Show a warning to users if trade includes item with csfloat note that doesn't match an existing sale * - * Tries to prevent scenarios where malicious actors send offer with CSGOFloat text requesting an item + * Tries to prevent scenarios where malicious actors send offer with CSFloat text requesting an item */ showWarningDialog(): HTMLTemplateResult { if (!this.hasAutoFillText()) { @@ -146,7 +146,7 @@ export class AutoFill extends FloatElement { Warning!
    - Some of the items in the offer were not purchased from you on CSGOFloat Market (or you're logged + Some of the items in the offer were not purchased from you on CSFloat Market (or you're logged into the wrong account)
    @@ -179,7 +179,7 @@ export class AutoFill extends FloatElement { if (note) { ( note as HTMLTextAreaElement - ).value = `CSGOFloat Market Trade Offer #${trade.id} \n\nThanks for using CSGOFloat!`; + ).value = `CSFloat Market Trade Offer #${trade.id} \n\nThanks for using CSFloat!`; } } @@ -188,7 +188,9 @@ export class AutoFill extends FloatElement { if (tradeMessages.length > 0) { const sanitized = (tradeMessages[0] as HTMLElement).innerText.trim().replace(/ /g, '').toLowerCase(); - return sanitized.includes('csgofloat') || sanitized.includes('floatmarket'); + return ( + sanitized.includes('csgofloat') || sanitized.includes('floatmarket') || sanitized.includes('csfloat') + ); } return false; diff --git a/src/lib/page_scripts/utils.ts b/src/lib/page_scripts/utils.ts index a5d8a293..1b1fdb2e 100644 --- a/src/lib/page_scripts/utils.ts +++ b/src/lib/page_scripts/utils.ts @@ -21,7 +21,7 @@ async function initiateFirefox(scriptPath: string) { // Why do we need to use manual DOM script injection and // fetch the text of the script? - // See https://github.com/csgofloat/extension/issues/155#issuecomment-1639781914 + // See https://github.com/csfloat/extension/issues/155#issuecomment-1639781914 // We want to inject the ID of the extension const id = browser.runtime.id; @@ -29,8 +29,8 @@ async function initiateFirefox(scriptPath: string) { const entryScript = document.createElement('script'); entryScript.appendChild( document.createTextNode(` - window.CSGOFLOAT_EXTENSION_ID = '${id}'; - window.CSGOFLOAT_MODEL_FRAME_URL = '${modelUrl}'; + window.CSFLOAT_EXTENSION_ID = '${id}'; + window.CSFLOAT_MODEL_FRAME_URL = '${modelUrl}'; `) ); document.head.appendChild(entryScript); @@ -62,6 +62,7 @@ export async function init(scriptPath: string, ifPage: () => any) { if (inPageContext()) { // @ts-ignore Set global identifier for other extensions to use window.csgofloat = true; + window.csfloat = true; ifPage(); return; @@ -74,11 +75,11 @@ export async function init(scriptPath: string, ifPage: () => any) { } console.log( - `%c CSGOFloat Market Checker (v${chrome.runtime.getManifest().version}) by Step7750 `, + `%c CSFloat Market Checker (v${chrome.runtime.getManifest().version}) by Step7750 `, 'background: #004594; color: #fff;' ); console.log( - '%c Changelog can be found here: https://github.com/csgofloat/extension ', + '%c Changelog can be found here: https://github.com/csfloat/extension ', 'background: #004594; color: #fff;' ); } diff --git a/src/lib/types/extension_globals.ts b/src/lib/types/extension_globals.ts index 7b4b5343..8f9b0402 100644 --- a/src/lib/types/extension_globals.ts +++ b/src/lib/types/extension_globals.ts @@ -2,7 +2,7 @@ export {}; declare global { interface Window { - CSGOFLOAT_EXTENSION_ID: string; - CSGOFLOAT_MODEL_FRAME_URL: string; + CSFLOAT_EXTENSION_ID: string; + CSFLOAT_MODEL_FRAME_URL: string; } } diff --git a/src/lib/types/float_market.ts b/src/lib/types/float_market.ts index 6a239377..cc2b2404 100644 --- a/src/lib/types/float_market.ts +++ b/src/lib/types/float_market.ts @@ -1,5 +1,5 @@ /** - * Types related to CSGOFloat Market + * Types related to CSFloat Market */ export interface Item { diff --git a/src/lib/types/steam.d.ts b/src/lib/types/steam.d.ts index d0ea0538..976fe730 100644 --- a/src/lib/types/steam.d.ts +++ b/src/lib/types/steam.d.ts @@ -154,7 +154,7 @@ export interface CInventory { ShowInventoryLoadError: () => void; RetryLoad: () => any; - // Annotated by CSGOFloat, see {@link fallback.ts} + // Annotated by CSFloat, see {@link fallback.ts} g_ShowInventoryLoadError: () => void; g_AddInventoryData: (data: any) => void; g_GetInventoryLoadURL: () => string; diff --git a/src/lib/utils/skin.ts b/src/lib/utils/skin.ts index c1c9b0b1..84a660bc 100644 --- a/src/lib/utils/skin.ts +++ b/src/lib/utils/skin.ts @@ -84,7 +84,7 @@ function getFloatDbLink(info: ItemInfo, order: OrderType): string { } } - return `https://csgofloat.com/db?defIndex=${info.defindex}&paintIndex=${ + return `https://csfloat.com/db?defIndex=${info.defindex}&paintIndex=${ info.paintindex }&order=${order}&category=${getFloatDbCategory(info)}`; } diff --git a/webpack.config.js b/webpack.config.js index e740cbc2..4d026702 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,7 +25,7 @@ function convertToFirefoxManifest(manifest) { }; cp.browser_specific_settings = { gecko: { - id: 'ff_extension@csgofloat.com', + id: 'ff_extension@csfloat.com', strict_min_version: '109.0', }, }; From 387d80742ec3b03690598ed12493c663d96ee42a Mon Sep 17 00:00:00 2001 From: Step7750 Date: Tue, 1 Aug 2023 19:59:30 -0600 Subject: [PATCH 2/3] Fixes Build --- src/lib/page_scripts/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/page_scripts/utils.ts b/src/lib/page_scripts/utils.ts index 1b1fdb2e..6b4421b9 100644 --- a/src/lib/page_scripts/utils.ts +++ b/src/lib/page_scripts/utils.ts @@ -61,8 +61,9 @@ export async function init(scriptPath: string, ifPage: () => any) { // Don't allow the page script to run this. if (inPageContext()) { // @ts-ignore Set global identifier for other extensions to use - window.csgofloat = true; window.csfloat = true; + // @ts-ignore Deprecated name + window.csgofloat = true; ifPage(); return; From 42581b0aec401356ccc3d61df29c3c5328108dca Mon Sep 17 00:00:00 2001 From: Step7750 Date: Tue, 1 Aug 2023 20:03:10 -0600 Subject: [PATCH 3/3] Updates More Refs --- README.md | 4 ++-- package-lock.json | 4 ++-- package.json | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a45bb34c..2ee1eb45 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

    -[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Step7750/CSGOFloat/LICENSE) +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/csfloat/extension/LICENSE) [![Website](https://img.shields.io/website-up-down-green-red/https/csfloat.com.svg)](https://csfloat.com) [![Chrome Web Store](https://img.shields.io/chrome-web-store/d/jjicbefpemnphinccgikpdaagjebbnhg.svg)](https://chrome.google.com/webstore/detail/csgofloat-market-checker/jjicbefpemnphinccgikpdaagjebbnhg) [![Chrome Web Store](https://img.shields.io/chrome-web-store/stars/jjicbefpemnphinccgikpdaagjebbnhg.svg)](https://chrome.google.com/webstore/detail/csgofloat-market-checker/jjicbefpemnphinccgikpdaagjebbnhg) @@ -36,4 +36,4 @@ Please see [`src/`](/src/README.md) for an overview of how the extension works a ## Changelog -See [Releases](https://github.com/csgofloat/extension/releases) for release notes. +See [Releases](https://github.com/csfloat/extension/releases) for release notes. diff --git a/package-lock.json b/package-lock.json index 0cb5b88b..5657ee0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "csgofloat-extension", + "name": "csfloat-extension", "version": "3.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "csgofloat-extension", + "name": "csfloat-extension", "version": "3.1.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 326ce233..1a5e5e7f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "csgofloat-extension", + "name": "csfloat-extension", "version": "3.1.0", "description": "Dedicated API for fetching the float value, paint seed, and screenshots of CS:GO items on the Steam Market or Inventories", "main": ".eslintrc", @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/csgofloat/extension.git" + "url": "git+https://github.com/csfloat/extension.git" }, "scripts": { "build": "webpack --env mode=prod browser=chrome --config webpack.config.js --stats-error-details", @@ -22,9 +22,9 @@ "author": "step7750", "license": "MIT", "bugs": { - "url": "https://github.com/csgofloat/extension/issues" + "url": "https://github.com/csfloat/extension/issues" }, - "homepage": "https://github.com/csgofloat/extension#readme", + "homepage": "https://github.com/csfloat/extension#readme", "devDependencies": { "@types/chrome": "^0.0.193", "@types/firefox-webext-browser": "^111.0.1",