[GH-ISSUE #89] I got this error #235

Closed
opened 2026-03-07 20:15:34 +03:00 by kerem · 3 comments
Owner

Originally created by @theoyiorkas on GitHub (Jul 5, 2023).
Original GitHub issue: https://github.com/davidarroyo1234/InstagramUnfollowers/issues/89

Error on line 1:36993: ReferenceError: Can't find variable: location

Originally created by @theoyiorkas on GitHub (Jul 5, 2023). Original GitHub issue: https://github.com/davidarroyo1234/InstagramUnfollowers/issues/89 Error on line 1:36993: ReferenceError: Can't find variable: location
kerem closed this issue 2026-03-07 20:15:34 +03:00
Author
Owner

@tomleb3 commented on GitHub (Jul 5, 2023):

Strange. What browser are you using?

<!-- gh-comment-id:1621699448 --> @tomleb3 commented on GitHub (Jul 5, 2023): Strange. What browser are you using?
Author
Owner

@theoyiorkas commented on GitHub (Jul 5, 2023):

Strange. What browser are you using?

I'm trying to implement your code through iOS Shortcuts app using Safari browser.

<!-- gh-comment-id:1621703529 --> @theoyiorkas commented on GitHub (Jul 5, 2023): > Strange. What browser are you using? I'm trying to implement your code through iOS Shortcuts app using Safari browser.
Author
Owner

@tomleb3 commented on GitHub (Jul 5, 2023):

I see. I am not familiar with the "iOS Shortcuts app", but it sounds like a specific use-case that we do not directly support.

Obviously, this is an open-source script and you may use it in every which way that meets the terms of its license, but be aware that we may not be able to provide much assistance in case of issues with specific set-ups.

What I can say that might help is that it seems like either you don't have access to the global Location interface which itself is part of the browser's Window interface.
Or you might not have access to Window at all, as it depends on the environment you are running the code in (browser / node / etc...).

With that being said, we only use the global Location interface for 2 things and both of them could be omitted without really breaking the script.
You can achieve this by cloning the repository, searching the code for uses of "location", removing them, and then building the code yourself, thus creating a version of the script that suits your specific needs.

However, if you decide to pursue this option, you should be aware that:

  1. Upon future updates to the original script, you'll be responsible for re-creating your own version if you want to be updated with the latest features of the script.
  2. There might still be other uses of global interfaces that you may not have access to either.

Due to the reasons explained above, I am closing the issue.
If you have any more questions, feel free to comment them :)

<!-- gh-comment-id:1622147591 --> @tomleb3 commented on GitHub (Jul 5, 2023): I see. I am not familiar with the "iOS Shortcuts app", but it sounds like a specific use-case that we do not directly support. Obviously, this is an open-source script and you may use it in every which way that meets the terms of its license, but be aware that we may not be able to provide much assistance in case of issues with specific set-ups. What I can say that might help is that it seems like either you don't have access to the global [`Location`](https://developer.mozilla.org/en-US/docs/Web/API/Location?retiredLocale=he) interface which itself is part of the browser's [`Window`](https://developer.mozilla.org/en-US/docs/Web/API/Window) interface. Or you might not have access to `Window` at all, as it depends on the environment you are running the code in (browser / node / etc...). With that being said, we only use the global `Location` interface for 2 things and both of them could be omitted without really breaking the script. You can achieve this by cloning the repository, searching the code for uses of "location", removing them, and then building the code yourself, thus creating a version of the script that suits your specific needs. However, if you decide to pursue this option, you should be aware that: 1. Upon future updates to the original script, you'll be responsible for re-creating your own version if you want to be updated with the latest features of the script. 2. There might still be other uses of global interfaces that you may not have access to either. --- Due to the reasons explained above, I am closing the issue. If you have any more questions, feel free to comment them :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/InstagramUnfollowers#235
No description provided.