AddThis new trending box, how to remove the extra Hashtags added to the URL's - hashtag

AddThis new trending box, how to remove the extra Hashtags added to the URL's by AddThis.
Exemple: http://www.website.co.uk/#at_pco=tcb-1.0&at_tot=5&at_ab=-&at_pos=3
https://www.addthis.com/get/trending

The hashtags at the end of the URL are used to track and report how many clicks you get. If you're using AddThis analytics, you'll want to leave them. However, if you're not using AddThis analytics, you can disable the hashes by setting "tag" to false like this:
addthis.box("#addthis_trendingcontent", {
tag: false
});
All the options for the trending content box can be found here:
http://support.addthis.com/customer/portal/articles/521730-trending-content-box-api#.Uu0mg3ddWTM

Related

How to change text in Shopify Admin pages?

I'm trying to change the text "SKU" to something else on the Admin site, in two places:
On the Product Variant column header, when you're looking at the Product in the admin site.
On the Variant Options screen, under the Inventory header.
The purpose is to change the name for the Admin user to see something else, it doesn't need to impact the front end site. I already tried modifying the translation in en.default.json but that didn't work.
Its a build in text in the Shopify pages and code.
You can use a Javascript to do it by writing a Chrome/Firefox extension to do it or using a bookmarklet in your address bar.
A bookmraklet is a JS code which is running on the given page when you click it
Here are few samples:
http://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/

Is it possible to exclude links from tracking

I am building an app which is utilizing Sendgrid Marketing Email API, with the purpose of sending newsletters. It has a number of links to articles, but also banner ads and other service links. We would obviously like to keep tracking of article links, but exclude other links from affecting the click rate. Is it possible in any way to mark links which we don't wish to add to tracking?
Minor thread necromancy to let anyone who gets here via google know that they added an attribute to disable link tracking.
https://sendgrid.com/docs/Classroom/Track/Clicks/click_tracking_html_best_practices.html
Click tracking can be turned off for individual links by including the clicktracking=off attribute inside the anchor of an HTML link before the href. For example, <a clicktracking=off href="http://example.com">link text</a> would not be tracked.
The current click tracking application for SendGrid overwrites all links and there isn't, at this time, a way to customise this so only certain links are tracked.
One alternative would be to turn off the Click Tracking app in your SendGrid dashboard, but switch on the Google Analytics app (under Apps > Show Disabled Apps > Google Analytics).
With this app switched on, you can then build out custom links that you want to track using the Google Analytics URL Builder.
This would stop SendGrid rewriting all the URLs, and allow you to specify URLs that you want to track. However it would mean you will lose click event data in your SendGrid analytics, and via the Event Webhook, but the important data that you want to track for your campaigns would still be stored in Google Analytics.
You can also disable Sendgrid's tracking using the api. To do this you set some email headers.
Example X-SMTPAPI header value:
{
"filters" : {
"clicktrack" : {
"settings" : {
"enable" : 0,
"enable_text" : false
}
}
}
}
This works for plain text emails.
See: https://sendgrid.com/docs/for-developers/sending-email/smtp-filters/#filter-clicktrack
1.To disable tracking for a specific link add clicktracking=off before href
eg: <a clicktracking=off href="http://destination-domain.com">text</a>
2.To disable sendgrid link tracking for all mails
Goto Settings -> Tracking -> Click Tracking -> turn off link tracking

There is a way in Tumblr to get media images URL in the same domain of the blog name?

Lets say my blog is http://foo.tumblr.com.
All the post's images are stored in xx.media.tumblr... (for example: https://24.media.tumblr.com/tumblr_kzjlfiTnfe1qz4rgho1_250.jpg) (first 2 numbers can be skipped)
But i want the URL of the image be in the same domain of my blog, and looks something like this:
http://foo.tumblr.com/tumblr_kzjlfiTnfe1qz4rgho1_250.jpg
(that doesn't exist)
Why i need that? I am creating a script, and it generates a canvas that detects if the image have transparency with a getImageData (all the .jpg are skipped), but since the subdomain is different, i get a cross-domain security error, and the canvas is tainted, avoiding the use of getImageData.
So.. how can i do that?
I think Tumblr API could be useful, but how?
Scrape your sitemap for all posts and get their images. You could use the API or just with Javascript in the browser console:
xmlin = prompt(); // view-source:biochemistri.es/sitemap1.xml
parser = new DOMParser();
xmlDoc=parser.parseFromString(xmlin,"text/xml");
xmlDoc.querySelectorAll('loc')[0].remove();
posts = xmlDoc.querySelectorAll('loc');
postlist = [];
for (i=0;i<posts.length;i++) {postlist.push(posts[i].innerHTML)};
...to generate an array containing all posts, which can be navigated through for photo posts (div.post.photo) and their URLs copied.
Then simply generate a new list of images with a for loop and newImg = document.createElement('img'), setting an origin attribute using newImg.setAttribute('origin') = myPhotoList[n] which can then be used to select an image programmatically:
document.querySelector("img[origin='"+{PhotoURL-HighRes}+"']"
(or {PhotoURL-1280}, {PhotoURL-500}, {PhotoURL-250} etc. Once retrieved over an XMLHttpRequest, you could simply switch the post in the DOM. The {PhotoURL-HighRes} in my example above wouldn't work, it'd be an attribute from the page I'm just indicating which part you'd want to get from the theme HTML.
As explained in this post, there is a variable which could be used as a more concise attribute than the full origin URL if you want to be a bit more specific with regular expressions.
This would effectively put all of your images onto your local URL, with URLs like foo.tumblr.com/images/tumblr_kzjlfiTnfe1qz4rgho1_250.jpg, and avoid cross-domain restrictions. I'm guessing it'd work only if you don't have a ton of posts as custom pages such as you'd be using to store images do have a restriction on their size (though I suppose you could make a second one).
Also might be sensible to include CSS to set display: none in case anyone stumbles upon the page by accident, and a redirect function to the homepage with window.onload or similar.

How to block a user from my instagram webfeed?

I have a joomla website, and use a module to get a feed from Instagram based on a tag (#). But i have a user that keeps taggin with this tag. Is it possible to blog the user so that his images do not show on my web page even if he uses the tag that i use for my feed? I have tryed to block the user in Instagram, but his images still comes up in my feed..
You will have to write your own custom module to get feed and filter manually by blocking the user_id
You might have to delete your comments or remove tags because they will not automatically be removed even after blocking that user.
source: http://viralkick.com/blog/block-someone-instagram/

Exclude text from search results preview snippet?

I've implemented a "Skip to Content" link on my site and hidden it off screen (except when :focused). However, I've noticed on some pages where I haven't explicitly defined a meta description, Google picks up "Skip to Content" for its preview snippet in search results.
Is there a way to format or mark text that shouldn't be used in a search snippet? My case is a skip to content link, but I can imagine other similar needs. However, in this case, it must remain accessible (so no display:none, etc.).
I supposed what I'm looking for is some version of rel="nofollow" but for the next and not just the link.
tl;dr: "Skip to content" link appears in search snippets. That's not desired.
I don't think there is such a way for the general Google search.
Google allows customers of their Google Search Appliance and Google Mini products to state which content should be ignored for the search by using googleoff and googleon in HTML comments; see Excluding Unwanted Text from the Index. But this doesn't work for the public Google search, of course.
I think the bestway to try to prevent that problem would be to use a meta description: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=79812
<meta name="description" content="A description of the page" />
it must remain accessible (so no display:none, etc.)
Well, if you're OK with using JavaScript, you can still use style="display:none" in your div or span tag and add the following to your JS file:
$(document).ready(function() {
document.getElementById('skip').style.display = "block";
//Or shorter with jQuery
$('#skip').show(); //Alternatively: fadeIn()
});