Take ten seconds now to make sure you’re registered to vote

Fellow citizens! An important election is approaching, and you should vote in it. But are you registered? Are you sure? Why don’t you take ten seconds now to check?

Maybe you moved recently and the notices are going to your old place. Maybe your county had a records snafu. Maybe you’re one of thousands of voters being purged from the rolls in order to tip a close race. Who knows?

It’s very simple to do this online. You don’t need any documents and you don’t need to send anything in or call anyone. The nonpartisan Vote.org will query your state’s registration database for you, or you can scroll down a bit at that page and go directly to the state site to do it yourself.

If you’re not registered, don’t worry. Many states allow you to register right up until election day, and if you haven’t registered before or it’s been a while, all you really need is to be a citizen with a valid ID. Special welcome to all new citizens!

Some states have already closed registration: Alaska, Arizona, Arkansas, Georgia, Indiana, Kentucky, Michigan, Mississippi, Missouri, New Mexico, Ohio, Pennsylvania, Rhode Island, Tennessee and Texas. Some states have deadlines that have already passed for mail-in registration, in-person registration, and so on. But as of today it is still possible to register to vote in every state not listed above.

For instance here in Washington, online registration closed on October 8, but I could still register in person for the next couple weeks. In Delaware you only have until the 13th — but you can register online, by mail, or in person until then. South Carolina and Florida would normally have closed registration but have extended it because of the hurricane.

The New York Times has put together a comprehensive list of deadlines for each state, with links for each registration method. And if you’ll be gone for election day, November 6, you should be able to check your state’s site for an absentee or early voting ballot.

Every vote counts. Your candidates and issues need yours! Check if you’re registered at Vote.org or your state site, and if you’re not, there’s still time to register.


Source: Tech Crunch

Apple rebukes Australia’s “dangerously ambiguous” anti-encryption bill

Apple has strongly criticized Australia’s anti-encryption bill, calling it “dangerously ambiguous” and “alarming to every Australian.”

The Australian government’s draft law — known as the Access and Assistance Bill — would compel tech companies operating in the country, like Apple, to provide “assistance” to law enforcement and intelligence agencies in accessing electronic data. The government claims that encrypted communications are “increasingly being used by terrorist groups and organized criminals to avoid detection and disruption,” without citing evidence.

But critics say that the bill’s “broad authorities that would undermine cybersecurity and human rights, including the right to privacy” by forcing companies to build backdoors and hand over user data — even when it’s encrypted.

Now, Apple is the latest company after Google and Facebook joined civil and digital rights groups — including Amnesty International — to oppose the bill, amid fears that the government will rush through the bill before the end of the year.

In a seven-page letter to the Australian parliament, Apple said that it “would be wrong to weaken security for millions of law-abiding customers in order to investigate the very few who pose a threat.”

“We appreciate the government’s outreach to Apple and other companies during the drafting of this bill,” the letter read. “While we are pleased that some of the suggestions incorporated improve the legislation, the unfortunate fact is that the draft legislation remains dangerously ambiguous with respect to encryption and security.”

“This is no time to weaken encryption,” it read. “Rather than serving the interests of Australian law enforcement, it will just weaken the security and privacy of regular customers while pushing criminals further off the grid.”

Apple laid out six focus points — which you can read in full here — each arguing that the bill would violate international agreements, weaken cybersecurity and harm user trust by compelling tech companies to build weaknesses or backdoors in its products. Security experts have for years said that there’s no way to build a “secure backdoor” that gives law enforcement authorities access to data but can’t be exploited by hackers.

Although Australian lawmakers have claimed that the bill’s intentions are not to weaken encryption or compel backdoors, Apple’s letter said the “the breadth and vagueness of the bill’s authorities, coupled with ill-defined restrictions” leaves the bill’s meaning open to interpretation.

“For instance, the bill could allow the government to order the makers of smart home speakers to install persistent eavesdropping capabilities into a person’s home, require a provider to monitor the health data of its customers for indications of drug use, or require the development of a tool that can unlock a particular user’s device regardless of whether such tool could be used to unlock every other user’s device as well,” the letter said.

Apple’s comments are some of the strongest pro-encryption statements it’s given to date.

Two years ago, the FBI sued Apple to force the technology giant to build a tool to bypass the encryption in an iPhone used by one fo the the San Bernardino shooters, who killed 14 people in a terrorist attack in December 2015. Apple challenged the FBI’s demand — and chief executive Tim Cook penned an open letter called the move a “dangerous precedent.” The FBI later dropped its case after it paid hackers to access the device’s contents.

Australia’s anti-encryption bill is the latest in a string of legislative efforts by governments to seek greater surveillance powers.

The U.K. passed its Investigatory Powers Act in 2016, and earlier this year the U.S. reauthorized its foreign surveillance laws with few changes, despite efforts to close warrantless domestic spying loopholes discovered in the wake of the Edward Snowden disclosures.

The Five Eyes group of governments — made up of the U.K., U.S., Canada, Australia and New Zealand — further doubled down on its anti-encryption aggression in recent remarks, demanding that tech companies provide access or face legislation that would compel their assistance.


Source: Tech Crunch

Facebook prototypes Unsend 6 months after Zuckerberg retracted messages

In April, TechCrunch broke the news that some of Mark Zuckerberg’s Facebook messages were deleted from recipients’ inboxes in what some saw as a violation of user trust and abuse of power since Facebook Messenger doesn’t have an Unsend button. The next morning, Facebook suddenly announced that it would actually build this Unsend functionality for everyone. But six months went by without a peep about the feature, furthering suspicions that the announcement that it would release an Unsend button was merely a PR driven response to the scandal, even if Facebook was just taking time to figure out the right way to build it.

Late last week, TechCrunch asked Facebook about its progress on Unsend ahead of the six month mark, and the company told us “Though we have nothing to announce today, we have previously confirmed that we intend to ship a feature like this and are still planning to do so.”

Now we have our first look at the feature thanks to TechCrunch’s favorite tipster Jane Manchun Wong. She’s managed to generate screenshots of a prototype Unsend button from Facebook Messenger’s Android code. Other Facebook prototypes discovered by Wong like the Your Activity screentime dashboard, Instagram’s video calling and music stickers, and more features have gone on to receive official launches.

Currently, you can only delete messages from your own inbox — they still remain in the recipients’ inbox. But with this Unsend feature prototype, you’re able to remove a message from both sides of a conversation. However, the code indicates that in the current prototype there’s a “time limit”. That may mean users would only have a certain amount of time after they send a message to unsend it. That would essentially be an editing window in which users could take back what they said.

In response, a spokesperson confirmed that “Facebook internally tests products and features before they ship to the public so we can ensure the quality of the experience.”

The Unsend feature could be useful to people who say something stupid or inappropriate, disclose a secret they shouldn’t have, or want to erase evidence of their misdeeds. That could make users more comfortable speaking freely on the app, since they know they can retract their texts. Snapchat’s messages self-destruct unless purposefully saved to the thread by a user, permitting more off-the-cuff chatting.

But Unsend could also open vectors for abuse, as users could harass people over Messenger and then delete the evidence. Facebook will need to ensure that Unsend doesn’t accidentally become a weapon for bullies. That might mean allowing users to turn off the ability for their conversation partners to Unsend messages on a thread by thread basis, and/or a report button specifically for flagging messages that have since been retracted.

Facebook’s acquisition Instagram already lets users Unsend messages and Snapchat added an Unsend option in June. But those chat products are more designed for having fun, discussing memes, and sharing photos with close friends. Messenger has positioned itself as a core communications utility for the world. Messing with the permanence of messages could make it feel less reliable or truthful to some users. When we talk in person, our conversations aren’t written in stone forever…but there’s also no way to force someone to forget what you said.


Source: Tech Crunch

YC-grad Papa raises $2.4M for its ‘grandkids-on-demand’ service

One of the latest additions to the on-demand economy is Papa, a mobile app that connects college students with adults over 60 in need of support and companionship.

The recent graduate of Y Combinator’s accelerator program has raised a $2.4 million round of funding to expand its service throughout Florida and to five additional states next year, beginning with Pennsylvania. Initialized Capital led the round, with participation from Sound Ventures.

Headquartered in Miami, the startup was founded last year by chief executive officer Andrew Parker. The idea came to him while he was juggling a full-time job at a startup and caring for his grandfather, who had early onset dementia.

“I’ve always been a connector of humans,” Parker, the former vice president of health systems at telehealth company MDLIVE, told TechCrunch. “I’ve always naturally felt comfortable with all walks of life and all age groups and have just felt human connection is really critical.”

Seniors can request a “Papa Pal” using the company’s mobile app, desktop site or by phone. The pals can pick them up and take them out for an activity or have them over to play a game, complete household chores, teach them how to use social media and other technology or simply to chat. A senior is matched with a student, who must complete a “rigorous” background check, in as little as 30 seconds.

Parker says there are 600 students working with Papa an average of 25 hours per month.

“We’ve been fortunate that this is something the students really want to be part of,” he said. “They aren’t doing this for a couple extra dollars. They are doing this to help the community.”

The service costs seniors $20 per hour, $12 of which is paid to the students and $8 is returned to Papa. It’s not a subscription-based service, but seniors can pay for a premium option that lets them choose between three Papa Pals instead of being randomly paired with one of the several hundred options. The students do not provide any personal care, like bathing or grooming. And they are not a pick-up and drop-off service, like Uber or Lyft.

“We believe the Papa team has found a unique way to combat loneliness and depression in older adults,” said Alexis Ohanian, co-founder and managing partner of Initialized Capital, in a statement. “The experience that Papa Pals bring their members make it seem like they are part of a family.”

In addition to expanding to new markets, Papa is in the process of partnering with insurance companies with a goal of allowing seniors to pay for some of its services through their Medicare plans.

“Loneliness is a crisis. It’s a disease. It’s killing people prematurely,” Parker said. “We are providing a really massive impact to these people’s lives.”


Source: Tech Crunch

Grado takes the wraps off their first pair of wireless headphones

Legacy open-backed headphone maker Grado is taking their classic design into the future with the small Brooklyn company’s first pair of wireless headphones.

The GW100s have a familiar look but integrate bluetooth tech and volume controls. They go for $249.

Grado headphones are a favorite of mine, they have a very unique open sound that really resonates and are perfect for home listening. Previous iterations haven’t really thrived as much on the road or in noisy offices because they tend to let a lot of outside noise in and leak a lot of your tunes out. The company says that they’ve redesigned the housings and internals of the GW100s to reduce noise leakage by 60 percent, no famed wooden enclosures on this design either.

Part of what’s great about Grado headphones are their history, we toured the company’s tiny Brooklyn HQ a few years back and took a look at their operations, really cool stuff.

It’s tough for a company to make due on just brand legacy alone and even though audio tech generally has a much longer shelf life than other products, there’s always a time to adapt, especially now as more hardware makers purge headphone jacks from their devices.

In the past few years, the company branched out into some more mobile-friendly products, but the magic wasn’t all there. The wireless GW100s keep the company’s same drivers, though it’ll be interesting to hear what they sound like as the company tunes them to be more amenable to “on-the-go” listening. Speaking of which, they also look like they have a bit more sturdy of a design than some of the company’s more spartan headbands which were strangely kind of part of the appeal, but are definitely welcome for something more likely to be chucked in a backpack.

The headphones charge via micro-USB and offer a 15-hour battery life, the company says. They also pack an included 3.5mm cable if you want to use them with your old gear. More details on precise audio tuning on its product page.


Source: Tech Crunch

Copyright compromise: Music Modernization Act signed into law

Musicians are celebrating as the Music Modernization Act, an attempt to drag copyright and royalty rules into the 21st century, is signed into law after unanimous passage through Congress. The act aims to centralize and simplify the process by which artists are tracked and paid on digital services like Spotify and Pandora, and also extends the royalty treatment to songs recorded before 1972.

The problems in this space have affected pretty much every party. Copyright law and music industry practices were, as you might remember, totally unprepared for the music piracy wave at the turn of the century, and also for the shift to streaming over the last few years. Predictably, it isn’t the labels, distributors or new services that got hosed — it’s artists, who often saw comically small royalty payments from streams if they saw anything at all.

Even so, the MMA has enjoyed rather across-the-board support from all parties, because existing law is so obscure and inadequate. And it will remain that way to a certain extent — this isn’t layman territory and things will remain obscure. But the act will address some of the glaring issues current in the media landscape.

The biggest change is probably the creation of the Mechanical Licensing Collective. This new organization centralizes the bookkeeping and royalty payment process, replacing a patchwork of agreements that required lots of paperwork from all sides (and as usual, artists were often the ones left out in the cold as a result). The MLC will be funded by companies like Pandora or Google that want to enter into digital licensing agreements, meaning there will be no additional commission or fee for the MLC, but the entity will actually be run by music creators and publishers.

Previously digital services and music publishers would enter into separately negotiated agreements, a complex and costly process if you want to offer a comprehensive library of music — one that stifled new entrants to the market. Nothing in the new law prevents companies from making these agreements now, as some companies will surely prefer to do, but the MLC offers a simple, straightforward solution and also a blanket license option where you can just pay for all the music in its registry. This could in theory nurture new services that can’t spare the cash for the hundred lawyers required for other methods.

There’s one other benefit to using the MLC: you’re shielded from liability for statutory damages. Assuming a company uses it correctly and pays their dues, they’re no longer vulnerable to lawsuits that allege underpayment or other shenanigans — the kind of thing streaming providers have been weathering in the courts for years, with potentially massive settlements.

The law also improves payouts for producers and engineers, who have historically been under-recognized and certainly under-compensated for their roles in music creation. Writers and performers are critical, of course, but they’re not the only components to a great song or album, and it’s important to recognize this formally.

The last component of the MMA, the CLASSICS Act, is its most controversial, though even its critics seem to admit that it’s better than what we had before. CLASSICS essentially extends standard copyright rules to works created before 1972, during which year copyright law changed considerably and left pre-1972 works largely out of the bargain.

What’s the problem? Well, it turns out that many works that would otherwise enter the public domain would be copyright-protected (or something like it — there are some technical differences) until 2067, giving them an abnormally long term of protection. And what’s more, these works would be put under this new protection automatically, with no need for the artists to register them. That may sound convenient, but it also means that thousands of old works would be essentially copyrighted even though their creators, if they’re even alive, have asserted no intention of seeking that status.

A simple registry for those works was proposed by a group of data freedom advocates, but their cries were not heard by those crafting and re-crafting the law. Admittedly it’s something of an idealistic objection, and the harm to users is largely theoretical. The bill proceeded more or less as written.

At all events the Music Modernization Act is now law; its unanimous passage is something of an achievement these days, though God knows both sides need as many wins as they can get.


Source: Tech Crunch

G2 crowd, a business software marketplace, raises another $55M at just under a $500M valuation

G2 Crowd, a platform that lets businesses search for, compare reviews and pricing for, and then buy software and other IT services — it likes to refer to itself as the “Amazon of business software” — has raised $55 million in growth funding to continue expanding its business. This round was led by IVP, with participation from enterprise VC Emergence Capital and Accel (which led its previous round, which also included LinkedIn as an investor), and brings the company “close to half a billion dollar valuation,” according to a source close to the company.

This is a big leap: in May 2017, when it last raised money, G2 Crowd was valued at $130 million post-money, according to PitchBook.

The rise of that valuation underscores just how fragmented and competitive the market is for business software today, and how a company that provides a useful way to navigate through that has a very good shot at building a lucrative business. More generally, a vertical search engine filling a gap in the market and that actually works remains a killer app, despite the dominance of Google in so many areas of search, and of Amazon in so many areas of online commerce.

G2 Crowd has seen a big leap in its growth in the last 16 months. Software reviews is a core part of what it offers to people who come to the site looking for software — the company likes to compare itself to Amazon, but I’ve previously described it as the Glassdoor of software reviews — and today it has 500,000 verified-user reviews free to browse on its site. That’s up from 225,000 in May 2017. It has traffic of 2 million “business professionals” monthly, who go to G2 Crowd to browse 58,500 products across 1,200 categories. G2 Crowd also happens to have a very strong SEO game at the moment, with a top slot when you input searches like “LinkedIn competitor.”

While SEO and software comparisons are what might bring in users, what makes money for G2 is that many of them stay to shop for software, and that is what the company will continue building out with this funding.

“We started as a way to help companies make better buying decisions. Now, the focus is on helping them reach their potential through digital transformation, more quickly than ever.” said Godard Abel, CEO and co-founder of G2 Crowd.

It plans to use it to ramp up hiring, expand internationally in Europe and Asia, and make some acquisitions. “We have our eyes on a few companies that are complementary to our vision and mission,” CMO Ryan Bonnici tells me.

“When it comes to marketplaces, in today’s business climate it’s winner takes all. What Amazon is for consumers, G2 Crowd is becoming for businesses: the place to discover and buy the best business solutions,” said IVP General Partner Jules Maltz, in a statement. “G2 Crowd is disrupting the $3.7 trillion enterprise technology market for buying and selling business solutions, one of the fastest-growing sectors of the global economy. Small businesses to large enterprises like Nike and Facebook trust G2 Crowd to discover and buy the best solutions for their business.” Maltz is also joining the board with this round.

There are, of course, others that offer similar services to G2, with companies like IDC, Forrester and Gartner being strong contenders for enterprises, and others like Owler also hanging in the wings. Investors say G2 Crowd is king at the moment, though.

“G2 Crowd has the highest traffic and engagement, largest selection of products and services, and highest quality data of any B2B marketplace,” Jason Green at Emergence, said in a statement. “G2 Crowd is already growing at an incredible rate, and this latest funding round will only help them build the next Amazon for business even faster.”


Source: Tech Crunch

Instagram tests tapping instead of scrolling through posts, first in Explore

The effortless way you fast forward through Stories could be coming to more of Instagram . A screenshot from user Suprateek Bose shows Instagram “Introducing a new way to move through posts — Tap through posts, just like you tap through stories.”

Now Instagram confirms to TechCrunch that it’s testing tap to advance within Explore, and a spokesperson provided this statement: “We’re always testing ways to improve the experience on Instagram and bring you closer to the people and things you love.” As for whether this could come to the main feed, an Instagram spokesperson tells me that not something it’s actively thinking about right now.

Instagram already uses an auto-advance feature in its Videos You Might Like section of Explore, jumping down to the next video when the last one finishes. It previously offered themed video collections around Halloween and top creators too. But for photos where it’s not clear when you’re done viewing, a quick tap is the closest thing to Instagram propelling you through posts automatically.

Tap to advance, pioneered by Snapchat, eliminates the need for big thumbstrokes on your touch screen that can get tiring after awhile. It also means users always see media full-screen rather than having to fiddle with scrolling the perfect amount to see an entire post. Together, these create a more relaxing browsing experience that can devour hours of a user’s time. Instagram doesn’t show ads in Explore, but tap-to-advance could save your thumb stamina for more feed and Stories viewing where it does earn money. While Snapchat remains the teen favorite, Instagram could cater to seniors with arthritis with this new method of navigation (no, seriously, swiping can be tough on the joints for some people).

The fact that tap-to-advance is now testing but Instagram still hasn’t actually rolled out the Your Activity screentime digital well-being dashboard it says was launching two months ago begs the question of whether it really wants us to be more purposeful with our social media usage.


Source: Tech Crunch

Microsoft adds 60,000 patents to the Open Invention Network

Microsoft announced today that it’s joined open-source patent group, the Open Invention Network in an effort to help shield Linux and other open-source software from patent-related suits. As part of the deal, the software giant is opening a library of 60,000 patents to OIN members. Access to the massive portfolio is unlimited and royalty free.

It is, as ZDNET notes, a shift away from the aggressively litigious corporation of year’s past. Among other suits, the company had previously gone after a number of different companies in the Android ecosystem. Microsoft acknowledges as much in its announcement, adding that the news should be taken as a sign that its turning over a new leaf.

“We know Microsoft’s decision to join OIN may be viewed as surprising to some,” EVP Erich Andersen writes in a blog post, “it is no secret that there has been friction in the past between Microsoft and the open source community over the issue of patents. For others who have followed our evolution, we hope this announcement will be viewed as the next logical step for a company that is listening to customers and developers and is firmly committed to Linux and other open source programs.”

The news also finds the company looking to blur the lines between Windows and Linus development, encouraging devs to create programs for both operating systems, along with .NET and Java.

Last week, Microsoft followed the lead of companies like Google, Facebook and Amazon by joining anti-patent trolling group, the LOT Network.


Source: Tech Crunch

Four reasons why you should attend TC Sessions AR/VR 2018

On October 18 — just one week away — some of the most brilliant and innovative minds in reality creation will gather at UCLA’s Royce Hall in Los Angeles to attend TC Sessions AR/VR 2018. Whether you’re an early start-up founder, an investor, a developer or a student, if you’re focused on AR/VR, you don’t want to miss this day-long intensive that goes deep into the current and future state of augmented and virtual realities.

Need a bit more convincing? Here are four reasons why you should buy a ticket and attend TC Sessions AR/VR 2018.

1. Deep-dive discussions

We have an outstanding roster of speakers ready to take the stage and go deep on both the opportunities and the challenges facing the AR/VR industry now and in the future. Here are just some of the people and topics we have on tap.

Niko Bonatsos, managing director at General Catalyst, Jacob Mullins, a partner at Shasta Ventures and Catherine Ulrich, managing director at FirstMark Capital will offer a reality check on the state of AR/VR funding — and discuss where the opportunities lie.

Survios co-founders Nathan Burba and James Illiff will talk VR gaming. The big question is whether VR gaming will continue to be a big opportunity and whether the studio can keep the momentum rolling.

Stephanie Zhan, a partner at Sequoia Capital, discusses how to build an inclusive — if virtual — future. As we spend more time in online virtual worlds, can the game developers who build them address the social issues we encounter?

2. Presentations: The challenging future of AR/VR

From expensive hardware to breaking out beyond gaming, AR/VR technology faces hurdles to widespread adoption. Heavy-hitters at Oculus, Facebook, and Snap (to name a few) weigh in on this important subject. Here’s a taste.

Finding users isn’t the only hurdle when it comes to augmented reality. Creating developer platforms ranks right up there on the AR challenge-o-meter. Eitan Pilipski, a VP at Snap, will talk about leveraging the company’s extensive AR selfie-filter expertise to attract more developers.

Yelena Rachitzky is an executive producer of experiences at Oculus, a company that’s invested hundreds of millions of dollars into VR content. She’ll discuss how the company plans to help Facebook kickstart its VR future. Will Facebook’s customers buy in?

Speaking of Facebook’s future, Ficus Kirkpatrick leads the company’s camera team, and he’ll talk about the company’s entry into AR — by augmenting customers’ smartphone cameras. But where will Facebook’s AR journey lead?

3. Networking

You won’t find a better opportunity to connect with the leaders, innovators, investors and makers within the AR/VR community. Whether you’re looking for collaborators, an investment opportunity, your next job or your next round of funding, you’ll find the people who can make it happen at TC Sessions AR/VR 2018 — all in one day, all in one place.

4. Build community

Community building goes beyond simple networking. It’s like-minded people sharing their ideas, philosophies and dreams. It’s about learning from each other and then returning to the work with renewed inspiration. Come and enrich the community.

TC Sessions AR/VR 2018 takes place on October 18 at UCLA’s Royce Hall in Los Angeles. Tickets cost $149, but you can save 35 percent simply by tweeting your attendance. Go buy a ticket and join your people for one incredible, inspiring day. We can’t wait to see you next week!

( function() {
var func = function() {
var iframe = document.getElementById(‘wpcom-iframe-19c52b42f086f1a587c2e218ec3d8ccf’)
if ( iframe ) {
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-19c52b42f086f1a587c2e218ec3d8ccf’
}, “https://tcprotectedembed.com” );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {

var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ‘tcprotectedembed.com’ !== origin.host )
return;

// Verify message is in a format we expect
if ( ‘object’ !== typeof e.data || undefined === e.data.msg_type )
return;

switch ( e.data.msg_type ) {
case ‘poll_size:response’:
var iframe = document.getElementById( e.data._request.frame_id );

if ( iframe && ” === iframe.width )
iframe.width = ‘100%’;
if ( iframe && ” === iframe.height )
iframe.height = parseInt( e.data.height );

return;
default:
return;
}
}

if ( ‘function’ === typeof window.addEventListener ) {
window.addEventListener( ‘message’, funcSizeResponse, false );
} else if ( ‘function’ === typeof window.attachEvent ) {
window.attachEvent( ‘onmessage’, funcSizeResponse );
}
}
if (document.readyState === ‘complete’) { func.apply(); /* compat for infinite scroll */ }
else if ( document.addEventListener ) { document.addEventListener( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

 

( function() {
var func = function() {
var iframe = document.getElementById(‘wpcom-iframe-086161cffbd41e83b423a1cd9cb327e2’)
if ( iframe ) {
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-086161cffbd41e83b423a1cd9cb327e2’
}, “https://tcprotectedembed.com” );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {

var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ‘tcprotectedembed.com’ !== origin.host )
return;

// Verify message is in a format we expect
if ( ‘object’ !== typeof e.data || undefined === e.data.msg_type )
return;

switch ( e.data.msg_type ) {
case ‘poll_size:response’:
var iframe = document.getElementById( e.data._request.frame_id );

if ( iframe && ” === iframe.width )
iframe.width = ‘100%’;
if ( iframe && ” === iframe.height )
iframe.height = parseInt( e.data.height );

return;
default:
return;
}
}

if ( ‘function’ === typeof window.addEventListener ) {
window.addEventListener( ‘message’, funcSizeResponse, false );
} else if ( ‘function’ === typeof window.attachEvent ) {
window.attachEvent( ‘onmessage’, funcSizeResponse );
}
}
if (document.readyState === ‘complete’) { func.apply(); /* compat for infinite scroll */ }
else if ( document.addEventListener ) { document.addEventListener( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

 


Source: Tech Crunch