I have a job that requires a lot of tedious clicking throughout a website as part of the workflow. In one step, I click a link, go to the page, then ALWAYS click a link on that page. I wish I could just go to that link directly, as it would greatly speed things up.
Is there a way to do this? Or to very quickly select the correct link?
In my case I have to click edit on an image, and then the next page is a list of ways to edit the image, and the link I click is always the same because we always use the same way to edit an image.
What browser do you use? I have some experience in writing plugins in Google Chrome, but not any other. I don't think the differences are that big really. An example with Chrome:
Create a new folder, and two new files - manifest.json and myscript.js
Code for the manifest.json file:
{
"name": "My awesome script",
"description": "Some description",
"version": "1.0",
"content_scripts": [
{
"matches": [
"http://www.mypage.com/*"
],
"js": [
"myscript.js"
]
}
]
}
Change the "matches" to the pages you want it to inject with you custom script, and change the js file to whatever file you'd like to run. I often tend to include jquery as well (to do this, simply type
"js": [
"myscript.js",
"jquery.js"
]
A way to do this with JQuery/JS could be something like this:
$(document).ready(function() {
var autoLink = $("#imageID").attr('href');
document.location=autoLink;
});
I hope this answered your question.
Edit: To load the script - open the page chrome://extensions/ and select "Load unpacked script" or something like that (I don't have it in english) and select the folder you created. Voila.
Related
We are developping a SaaS for our customers in the shape of an SPA with VueJS.
We would like our app to appear in the google results on the search of an item. So if you search for the term "item of some brand" in google, our app is returned because you can buy that item on it. Preferably, returning the corresponding item url.
For infrastructure reasons, we cannot rely on the history API for our links in the app. So the google bot cannot crawl our links, which is obviously a bad start...
However, I came to an idea which we would like your expertise/insights on.
Since we are building some kind of webshop, would an initial JSON-LD containing an array of references to the products with their respective url work ?
Something like :
{
"#context": "http://schema.org",
"#type": "someType",
"itemsOrWhatever": [
{
"#type": "itemOrWhatever",
"name": "Some item name",
"url": "https://my.app.com/#/item/myItemId"
},
{
"#type": "itemOrWhatever",
"name": "Some item name",
"url": "https://my.app.com/#/item/myItemId"
},
{
"#type": "itemOrWhatever",
"name": "Some item name",
"url": "https://my.app.com/#/item/myItemId"
}
]
}
Would it also work if, for each page, we update the SEO tags in the page's head ? Especially the JSON-LD part ?
As Google and other SEs are eventually improving their crawling mechanism for SPAs, you can tackle few ways via Vue without History mode.
1) for dynamic <head> issue with routing, you can fixed with vue-meta to work with your title, description and other meta keywords along with your routing
2) via SSR such as NUXT (it's part of Vue and dynamic link friendly)
3) Google Webmaster/ Search Console might be your best friend to tackle/solve problems of SPAs as you could.
I am creating dynamic branch links using Android SDK
https://github.com/BranchMetrics/android-branch-deep-linking#creating-a-deep-link
These are then shared to social media
How do I track things like click events, installs etc as I do not believe they show up in the dashboard quick links view? https://dashboard.branch.io/quick-links
Is there a HTTP API I can use to interrogate all links I may have dynamically created that are part of the same campaign?
Alex from Branch.io here:
You are correct that SDK-generated links do not show up in the Quick Links view on the dashboard. Most SDK-created links are 'disposable' (in that they get used once and then regenerated the next time), so showing every link there individually would quickly overwhelm the UI. It is possible to override this on a link-by-link basis with the type parameter, as detailed here.
However, you can access the numbers in aggregate, segmented by campaign value, which I believe is what you want anyway. This is not currently available through the API, but you can see these statistics through the Sources report on the dashboard: https://dashboard.branch.io/sources
you must include a "type": 2 in your branch params
https://help.branch.io/developers-hub/docs/deep-linking-api
const branchConfig = {
"branch_key": environment.branchio.key_live,
"type": 2,
"data": {
"$marketing_title": (params.job_name ? params.job_name : ""),
}
};
For some time now, Facebook offers a new carousel post (basic feeding with link and many pictures) similar to the carousel ads, but every picture's link lead to the same page, it's a basic publication with text, link, image...
An sample of what I need (it's french, but sample images speak for itself:
http://www.leptidigital.fr/reseaux-sociaux/comment-creer-publication-facebook-carrousel-5612/
and the result about this news :
https://www.facebook.com/leptidigital/posts/868750466554694
I've only find documentation about the carousel ads (payable) via marketing API.
Any body know if is possible with the standard API ? My research come to nothing...
Special thanks for every one !
Thanks to CBroe for the comment left explaining where to find this information.
If you look at that post in Graph API Explorer, you see that the images are in the child_attachment structure. And apparently, you can use that field when creating page posts, too
Facebook feed documentation
Here's an example in Python on how to accomplish what the documentation means:
import requests
post_data = {"access_token": "your access token",
"message": "whatever you want to say"
"link": "https://some.link"
"child_attachments": '''[
{
"link": "http://some.link",
"picture": "https://app.replypro.io/media/wb3.jpg"
},
{
"link": "http://some.link",
"picture": "https://app.replypro.io/media/wb3.jpg"
}]'''}}
requests.post("https://graph.facebook.com/v5.0/<your page id>/feed", data=post_data)
Magnific pop up for Google Maps not working on Chrome mobile. When triggered I get "Google Maps Embed API must be used in an iframe".
It works perfectly with the Google Maps URL given in the Magnific example but not when I use my own, I'm not sure if Google have changed their URL structure since but it looks like the new "embeded" URL is causing the problem.
Here's an example of the kind of URL I'm using: https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2382.9841570555454!2d-6.227123684388949!3d53.32563697997466!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x48670ec57aa7b09d%3A0x7965235d57af13f!2sClayton+Hotel+Ballsbridge!5e0!3m2!1sen!2sie!4v1453039698107
Is there a way I can change this URL to more like the working URL structure given in the example?: https://maps.google.com/maps?q=221B+Baker+Street,+London,+United+Kingdom&hl=en&t=v&hnear=221B+Baker+St,+London+NW1+6XE,+United+Kingdom
Been wracking my brains with this one....any help would be greatly appreciated!
Thanks!
David
I noticed this too. It's because Magnific Popup uses "maps.google." whereas Google now uses "www.google.". I had this which didn't work
https://www.google.co.uk/maps/place/Leathermarket+Gardens
and I changed it to
https://maps.google.com/maps?q=Leathermarket+Gardens
Which now works.
Hope that helps a little.
Google maps should be embedded in iframe in Magnific pop plugin
Sample:
View map
Because the right solution isn't listed here. The only thing you have to do is removing this attribute: disableOn: 700.
Keep only the code below:
$('.popup-gmaps').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
Then it will works again.
PS: If you want to keep the new Google URL address form, you should change code inside jquery.magnific-popup.js library from:
gmaps: {
index: '//maps.google.',
src: '%id%&output=embed'
}
to:
gmaps: {
index: 'google.com/maps/',
src: '%id%'
}
I want users to be able to click a POI and then be able to click a button 'goto website' which redirects to the website of that POI in the clients native browser.
I think this page describes what I need: http://layar.pbworks.com/w/page/35910641/User%20Interaction%20Dialog%20API#showdialog
However, whats not clear to me: how can I test the action?
- I dont see which request (what are the parameters etc) is passed to my server in order for me to return the showDialog object
- I dont see IF and HOW I should nest the showDialog object in my POI
- how can I test this functionality on a layar in test mode (not published yet)
You should be able to do what you want simply using the Response Hotspot Action Object:
http://layar.pbworks.com/w/page/28473525/GetPOIs-JSON%20Response#Actions
You can add as many actions as you like - including links to websites:
"actions": [
{"activityType": 4, "uri": "http://www.mywebsite.com", "label": "Go To Website"}
]