<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shobhit Nigam on Medium]]></title>
        <description><![CDATA[Stories by Shobhit Nigam on Medium]]></description>
        <link>https://medium.com/@zombieteer?source=rss-445e21f7ed95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JRtsjkRuzGV7VbZ_CuH6Ew.jpeg</url>
            <title>Stories by Shobhit Nigam on Medium</title>
            <link>https://medium.com/@zombieteer?source=rss-445e21f7ed95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 08:44:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zombieteer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Disable Sell Popups and Enable Scrolling on Glassdoor]]></title>
            <link>https://medium.com/@zombieteer/disable-sell-popups-and-enable-scrolling-on-glassdoor-6efcd9156354?source=rss-445e21f7ed95------2</link>
            <guid isPermaLink="false">https://medium.com/p/6efcd9156354</guid>
            <dc:creator><![CDATA[Shobhit Nigam]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 11:04:16 GMT</pubDate>
            <atom:updated>2023-09-11T11:04:16.148Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital landscape, an increasing number of websites are enticing users to purchase their memberships using various tactics. In this article, I will share a method that enables you to access their content without the need for a subscription.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VUdPu4oPr9WlYprm-nDWA.png" /><figcaption>Flipkart Reviews on Glassdoor</figcaption></figure><ol><li>Right Click on the page and click on “Inspect”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rpro_Ey_tKzBDyMmi0P6gw.png" /><figcaption>Click on the Inspect button</figcaption></figure><p>2. A popup will open like this (Mostly on the right side)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XDqlbpRCTFZZQUDKiYN7g.png" /></figure><p>3. Select the inspect icon Shown below in the image, and hover on the page, which will highlight the Popup HTML element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2D54V5mQIfkL5n-BuSCYfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nym-QyNMEEbFJVvBE8vy4g.png" /><figcaption>Hover on the page to find the popup parent element</figcaption></figure><p>4. Click anywhere on the page when it is highlighted, and press the delete button on the keyboard, this will delete the popup element.</p><p>5. While sometimes deleting an element within a popup may suffice, it may not always remove the entire popup. You can identify this if the popup persists or if you are unable to interact with the page.</p><p>To address this issue, simply repeat steps 3 and 4 unless the bottom pop is removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgwSBv3YM_YkVuPl5R5Rgg.png" /><figcaption>The popup is removed, but scrolling is not enabled yet</figcaption></figure><p><strong>By now the Hard sell popup is removed, Now we need to enable the scrolling.</strong></p><h3><strong>Enable Scrolling</strong></h3><ol><li>Find the <strong>&lt;body</strong> tag and click on it (see image below for reference)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbRqfHBuXDgmRfuGtb3_1g.png" /></figure><p>2. Look for the height and overflow properties in the Styles section, and disable them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*KFRwAGpGW7oQfOeSWMxLdQ.png" /></figure><p>Now the Scrollbar would be visible, but you won&#39;t be able to scroll. As it is fixed to the top by the web developer, to fix this, follow the next step.</p><p>3. Go to <strong>Console</strong> (refer to the image below)<strong>, </strong>paste the following code, and press enter.</p><pre>document.body.onscroll = null;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*b6yzbIzDTj5n5fQxnEbdKg.png" /><figcaption>Enable Scrolling</figcaption></figure><p>Now you are good to go, You will be able to scroll the page and use the content.</p><blockquote>Note: If this still doesn’t work, please let me know in your comments, I will find the fix and update the article.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6efcd9156354" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chrome extension + Gmail Add-ons (pssss…. InboxSDK)]]></title>
            <link>https://medium.com/codalyze/chrome-extension-gmail-add-ons-pssss-inboxsdk-3583a7cda770?source=rss-445e21f7ed95------2</link>
            <guid isPermaLink="false">https://medium.com/p/3583a7cda770</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[attachment]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[inboxsdk]]></category>
            <dc:creator><![CDATA[Shobhit Nigam]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 18:23:16 GMT</pubDate>
            <atom:updated>2023-09-11T21:05:31.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*rDCy6FfhRk_T1dAtu90f8g.png" /></figure><p>So you want to make a Chrome web extension that lets the user interact with Gmail and serve a specific purpose? Then this article might be the best solution for you.<br>In this article I am going to take you on a tour of cooking a web extension that lets you add a customisable button on the Gmail thread toolbar, when clicked, it reads all the attachment received, and download them all for you.</p><blockquote><strong>Content</strong></blockquote><ol><li>Initialising Chrome Extension</li><li>Initialising InboxSDK</li><li>Loading InboxSDK and adding Thread toolbar button.</li><li>Reading all attachments and downloading them.</li></ol><h3><strong>Initialising Chrome Extension.</strong></h3><p>There are a lot of articles and videos on getting started with the Chrome extension, so how about starting with the official docs from <a href="https://developer.chrome.com/docs/webstore/get_started_simple">here</a>, or learning the basics of Chrome extension from a 25-minute <a href="https://youtu.be/wHZCYi1K664">video by “Traversy Media</a>”. Now this all would be enough for moving forward, but in case you want to learn more about the backend working of extension, I would suggest you to watch another descriptive 27-minute <a href="https://youtu.be/-dhMbVEreII">video by “An Object Is A</a>”. <br>By now your working directory would look like</p><figure><img alt="basic chrome extension directory" src="https://cdn-images-1.medium.com/max/315/1*DTbiku8DpsRVYIMzux1ivw.png" /></figure><p>Where your manifest.json should look like.</p><pre>{<br>  &quot;name&quot;: &quot;EXTENSION_NAME&quot;,<br>  &quot;description&quot;: &quot;EXTENSION_DESCRIPTION&quot;,<br>  &quot;version&quot;: &quot;0.0.1&quot;,<br>  &quot;manifest_version&quot;: 2,<br>  &quot;icons&quot;: {<br>    &quot;16&quot;: &quot;./logos/logo_16.png&quot;,<br>    &quot;32&quot;: &quot;./logos/logo_32.png&quot;,<br>    &quot;48&quot;: &quot;./logos/logo_48.png&quot;,<br>    &quot;128&quot;: &quot;./logos/logo_128.png&quot;<br>  },<br>  &quot;options_page&quot;: &quot;./options.html&quot;,<br>  &quot;browser_action&quot;: {<br>    &quot;default_popup&quot;: &quot;popup.html&quot;<br>  },<br>  &quot;permissions&quot;: [<br>    &quot;tabs&quot;,<br>    &quot;storage&quot;,<br>    &quot;https://www.google.com/*&quot;,<br>    &quot;https://mail.google.com/&quot;,<br>    &quot;https://inbox.google.com/&quot;<br>  ],<br>  &quot;web_accessible_resources&quot;: [&quot;*.png&quot;]<br>}</pre><h3><strong><em>Initialising InboxSDK</em></strong></h3><blockquote>Before that…</blockquote><blockquote><strong>Q.</strong> What the hell is InboxSDK?<br><strong>A.</strong> InboxSDK is basically a Javascript library that interact with both Gmail and Inbox by Google. It provides all of the necessary APIs to create full-fledged applications directly inside Gmail and Inbox. <br>To know more how about a <a href="https://www.inboxsdk.com/">visit</a> to it.</blockquote><p>To initialise, get our app ID by registering <a href="https://www.inboxsdk.com/register">here</a>, After we are done with that let us save its SDK from <a href="https://www.inboxsdk.com/build/inboxsdk.js">here</a> into our directory as inboxsdk.js and add “content_scripts” in manifest.json.<br>where script.js is going to have our own code.</p><pre>&quot;content_scripts&quot;: [<br>    {<br>      &quot;matches&quot;: [&quot;https://mail.google.com/*&quot;, &quot;https://inbox.google.com/*&quot;],<br>      &quot;js&quot;: [&quot;inboxsdk.js&quot;, &quot;script.js&quot;]<br>    }<br>  ],</pre><h3>Loading InboxSDK and adding Thread toolbar button.</h3><p>That is going to be pretty easy, just copy and paste the following code into your script.js file. Don’t forget to provide the iconUrl.</p><pre>InboxSDK.load(2, &#39;YOUR_APP_ID_HERE&#39;).then(function (sdk) {<br>  // the SDK has been loaded, now add a thread button<br>  sdk.Toolbars.registerThreadButton({<br>    title: &quot;TOOLTIP_TEXT_GOES_HERE&quot;,<br>    iconUrl: chrome.runtime.getURL(&quot;logos/logo_128.png&quot;),<br>    positions: [&quot;THREAD&quot;],<br>    listSection: sdk.Toolbars.SectionNames.OTHER,<br>    onClick: (event) =&gt; getAttachments(event, sdk),<br>  });<br>});</pre><blockquote><strong>Note: </strong>iconUrl key in above code is able to accept the logo value because of the presence of &quot;web_accessible_resources”:[&quot;*.png] in manifest.json file, which allows the web to access all the png files. <a href="https://developer.chrome.com/docs/extensions/mv2/manifest/web_accessible_resources/">READ MORE</a> (optional)</blockquote><p>Refresh your extension from chrome://extensions, open any mail in Gmail, and BOOYAH… there it is.</p><figure><img alt="Icon added on message toolbar" src="https://cdn-images-1.medium.com/max/532/1*WVStNBhfdc31IEL3mEMVag.png" /></figure><p>This icon button can be used for any specific purpose but we are going to deal with reading the attachments and their content.<br>And as always you can read more about the API&#39;s endpoint from <a href="https://www.inboxsdk.com/docs/">official docs</a>.</p><h3>Reading all attachments and downloading them.</h3><ul><li>Let&#39;s define the getAttachments function, which will register a message view handler, which first will check if the message view is expanded and is loaded or not.</li></ul><pre>const getAttachments = async (sdk) =&gt; {<br>  let unRegister = await sdk.Conversations.registerMessageViewHandler(<br>    async (messageView) =&gt; {<br>      let items = messageView.getFileAttachmentCardViews();<br>      if (messageView.getViewState() === &quot;EXPANDED&quot;) {<br>        if (messageView.isLoaded() &amp;&amp; items.length) {<br>          .........<br>          .........<br>        }<br>      }<br>  );<br>  unRegister();<br>};</pre><ul><li>If the defining condition is satisfied. Open a modal that says “Attachments are being read” and later loop through the attachments.</li></ul><pre>          // Open &quot;getting attachment&quot; modal<br>          let attachment_read_modal = sdk.Widgets.showModalView({<br>            title: &quot;Please Wait...&quot;,<br>            el: &quot;&lt;div&gt;Attachments are being read&lt;/div&gt;&quot;,<br>          });</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*_56kXKlCwp2gltJZijxxKA.png" /></figure><pre>          // Loop through each attachment and download them.<br>          for (let item of items) {<br>            try {<br>              .........<br>              .........<br>            } catch (error) {<br>              errorModal(sdk, error);<br>              console.log(error);<br>            }<br>          }<br>          // Close &quot;getting attachment&quot; modal<br>          attachment_read_modal.close();</pre><ul><li>In the final step, let&#39;s finish up our code by going through each individual attachment, fetching its data using regular expression, and fetch &amp; blob web APIs. Later download it by using createObjectURL web API and DOM.</li></ul><pre>              // Fetching the individual file data<br>              let attachment = item._attachmentCardImplementation._element;<br>              let download_url = attachment.attributes.getNamedItem(&quot;download_url&quot;).textContent;<br>              let re = /([^:]+):([^:]+):(.+)/;<br>              let match = re.exec(download_url);<br>              const contentType = match[1];<br>              const name = decodeURI(match[2]);<br>              const contentLink = match[3];<br>              let response = await fetch(contentLink);<br>              let blob = await response.blob();<br><br>              // Download the file<br>              let url = URL.createObjectURL(blob);<br>              let link = document.createElement(&quot;a&quot;);<br>              link.href = url;<br>              link.setAttribute(&quot;download&quot;, name);<br>              link.click();</pre><blockquote><strong>And thats it, </strong>test the working using multiple console.log() and add more features according to your need. In the end, <a href="https://developer.chrome.com/docs/webstore/publish/">publish your chrome extension</a>.</blockquote><blockquote>So how was it, pretty easy no. This article might be over but not the vast scope where this can be useful.</blockquote><p>Huge Shout-out to <a href="https://medium.com/u/4428ebc77dc3">Harishponna</a> for his unsaid motivation to write this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3583a7cda770" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codalyze/chrome-extension-gmail-add-ons-pssss-inboxsdk-3583a7cda770">Chrome extension + Gmail Add-ons (pssss…. InboxSDK)</a> was originally published in <a href="https://medium.com/codalyze">Codalyze</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>