🏠 Home 

Instagram Anonymous Story Viewer

Blocks a specific request to maintain anonymity while viewing Instagram stories.


Install this script?
  1. // ==UserScript==
  2. // @name Instagram Anonymous Story Viewer
  3. // @version 1.11
  4. // @description Blocks a specific request to maintain anonymity while viewing Instagram stories.
  5. // @license MIT
  6. // @author Azeez
  7. // @match *://www.instagram.com/*
  8. // @include *://www.instagram.com/*
  9. // @run-at document-start
  10. // @icon https://media.discordapp.net/attachments/750977638486638633/1125257675471601784/Instagram_logo_2022.png?size=256
  11. // @namespace https://greasyfork.org/users/1095860
  12. // ==/UserScript==
  13. // Last Updated: July 03, 2023
  14. (function() {
  15. // Store a reference to the original send method of XMLHttpRequest
  16. var originalXMLSend = XMLHttpRequest.prototype.send;
  17. // Override the send method
  18. XMLHttpRequest.prototype.send = function() {
  19. // Check if the request URL contains the "viewSeenAt" string
  20. if (typeof arguments[0] === "string" && arguments[0].includes("viewSeenAt")) {
  21. // Block the request by doing nothing
  22. // This prevents the "viewSeenAt" field from being sent
  23. } else {
  24. // If the request URL does not contain "viewSeenAt",
  25. // call the original send method to proceed with the request
  26. originalXMLSend.apply(this, arguments);
  27. }
  28. };
  29. })();