Getting the value from a steam profile using importxml - google-sheets

I wanted to create a google sheet where I put some steam profile links that I know are banned.
And in the row next to it I wanted to output via importxml how long they are already banned.
Steam Class for ban is:
<div class="profile_ban_status">
<div class="profile_ban">
1 VAC ban on record
<span class="profile_ban_info">| <a class="whiteLink" href="https://support.steampowered.com/kb_article.php?ref=7849-Radz-6869&l=english" target="_blank" rel="noreferrer">Info</a></span>
</div>
2306 day(s) since last ban </div>
My importxml looks like this:
=IMPORTXML(B3, "//div[#class='profile_ban_status']")
But it doesn't work.
Can anybody help me fix it?

When I tested your formula of =IMPORTXML(B3,"//div[#class='profile_ban_status']"), no error occurs and the value of 1 VAC ban on record | Info is obtained.
In this case, I would like to prpopose the following modification.
From:
=IMPORTXML(B3,"//div[#class='profile_ban_status']")
To:
=IMPORTXML(B3;"//div[#class='profile_ban_status']")
In this modification, , is replaced with ;.

Related

WhatsApp click-to-chat button not starting chat

I have click-to-chat button
<a href={`https://wa.me/00359877645533/?text="Hello"`}>
<img src="/whatsapp.svg"/>
</a>
When I click it on my phone it triggers the app, but then "the link couldn't be opened. Check the link and try again". From my understanding, the number format must begin with "00", followed by the country code. On desktop it launches the app, but not chat.
The number format must be country-code + number.
The "00" must be removed from the sample code you used, i.e.:
<a href={`https://wa.me/359877645533/?text="Hello"`}>
<img src="/whatsapp.svg"/>
</a>

SnipCart site: "$localize" showing up in Google search result snippet

I have customized my SnipCart e-commerce site following the customization documentation:
<div hidden id="snipcart" data-api-key="MY_KEY">
<address-fields>
<div>
<div class="snipcart-form__row">
<div class="snipcart-form__field snipcart-form__cell--large">
<snipcart-label class="snipcart__font--tiny" for="address1">
{{ $localize('address_form.address1') }}
</snipcart-label>
However, now I see $localize showing up in Google search results instead of the English text.
Google Search Console shows that the SnipCart .js resource (.css too) is blocked because of cdn.snipcart.com/robots.txt (which is configured to not allow crawling of anything). This seems to be the problem.
What is the proper way to fix this?
Answering my own question in case someone else stumbles into this.
You can prevent certain content from showing up in the snippet with the data no-snippet directive, for example:
<span data-nosnippet>Don't show me</span>
Reference:
https://developers.google.com/search/docs/advanced/crawling/special-tags#data-nosnippet

Hyperlink not clickable on Internet Explorer if use Url.Action

I used the mvc actionlink to get the url. It is working fine in chrome. But in IE it is not even clicking. i used the following code to navigate the page.
<a href="#Url.Action("GetHelpDocuments", "Document")">
<span class="navsprite helplink"></span>
<span>Help</span>
I don't find any error in my above code. But please give alternate solution for this.
I used localtion.href to get the actual location href
<a href="#Url.Action("GetHelpDocuments", "Document")" onclick='location.href = this.getAttribute("href")'>
<span class="navsprite helplink" ></span>
<span>Help</span>

Twitter share button not using custom url or text

I have a link like so
= link_to "https://twitter.com/share", class: "twitter-share-button", data: { url: "https://google.com", text: hack.body, via: "GhettoLifeHack_", hashtags: "ghettolifehack" } do
= image_tag "Tweet", alt: "Social Twitter tweet button"
and no matter how much I change the data-url value, the pre-tweet confirmation page always prepopulates the tweet form field with the url of the referring page, not the one I specified. It also ignores my custom data-text as well.
Why is this happening?
I also have this minified script
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
that I got from here https://about.twitter.com/resources/buttons#tweet
Removing that script doesn't seem to change anything.
edit: upon trying using :'data-url' attributes directly, the output html is the same.
I am testing hardcoded strings and dynamically generated urls at the same time. The first is the dynamic one.
<a class="twitter-share-button" href="https://twitter.com/share" data-via="GhettoLifeHack_" data-url="http://localhost:3000/hacks/1" data-text="asdf comment body" data-hashtags="ghettolifehack">
<img src="/images/Tweet" alt="Tweet" title=""></img>
</a>
The second is the hard coded strings
<a class="twitter-share-button" href="https://twitter.com/share" data-via="GhettoLifeHack_" data-url="httpL//google.com" data-text="custom text" data-hashtags="ghettolifehack">
<img src="/images/Tweet" alt="Tweet" title=""></img>
</a>
I've tested on development and in production. Both have the same behavior of pre-populating the tweet form with the referring url, rather than the specified url and text.
This works in Chrome for me but not in Firefox 32
The code provided by you is perfectly fine and should work as expected.
Many site issues can be caused by corrupt cookies or cache. Try to clear both cookies and the cache. I would suggest you to look into the following link to see why it is not working in firefox
The issue was specific to firefox browser. I'm not sure what addon or setting is causing the conflicts, but it is working perfectly find in chrome, including the popup window.

target="_blank" in a facebook profile-tab application (iframe)

i need links in a profile-tab app i'm writing open in new browser tabs. i set target="_blank" (with both hardcoded and with FBJS), but when i click on the links, the app page just reloads. i had a look at the html of the app as it's rendered by FB, and each of my links has an onclik event on it, that after creating a new image, returns false.
i tried doing linkDomObjectHandle.purgeEventListeners('click'), but as i expected, that didn't do much.
does anyone know of a way to get this to work?
edit: tested, and "right-click -> open in new tab" and middle-click both do what is expected. just the left click event gets hijacked.
edit:
some code snippets:
i have a template that is cloned, filled and the clone is appended to an element. here is the html of the template:
<div id="hover_window">
<a href="">
<img src="">
<div class="article_info">
<div class="client_info"></div>
<div class="media_info"></div>
</div>
</a>
</div>
i fill the link by doing:
var hover_window = document.getElementById('hover_window').cloneNode(true);
hover_window.setClassName('active_hover_window');
hover_window.getFirstChild().setHref(targetLink.getHref());
i tried adding both target="_blank" to the html and .setTarget("_blank") to the FBJS, to no avail.
pls advise.
This works in my facebook profile tab-app
Link targetting _blank for me
Link test
Facebook edits this link and adds "target" depending on the href-url specified. If it is an internal facebook target, it targets the current frame, if it is and external url, it targets blank. Please just try the link above and see if it works for you (and remove all that javascript and stuff you have)

Resources