Twitter Timeline widget not working in Chrome - javascript

My Twitter Timeline widget won't load in Chrome, but loads in both Firefox and IE perfectly.
When I check the console for Chrome, I get "Failed resource: http://platform.twitter.com/widgets.js" but when I click on that link, it works.
This is the code I am using:
<a class="twitter-timeline" href="https://twitter.com/funnelholic" data-widget-id="307229764530339840">Tweets by #funnelholic</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
I have also whitelisted both www.funnelholic.com and funnelholic.com
The site in question is: http://funnelholic.com, this is a Wordpress site, and I am using the Text widget to display it.
How can I fix this?

I had the same problem and was very frustrated that it did not work in Chrome.
It seems that the reason was
Adblock Plus
When I deactivated Adblock Plus for my page, it worked!
Guess you, #theintellects, also had Adblock active on the computer it did not work on.
With that said, I have added information on my webpage, that if the user uses Chrome and they don't see any Twitter timeline, they need to deactivate Adblock Plus for this page

Went home and tried it on a different computer in the same Chrome versions. Guess it somehow wasn't getting rid of cache...

you need to add this script
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Related

Google Invisible reCAPTCHA breaks Firefox JavaScript

I have tried pretty much every which way to configure the Google Invisible reCAPTCHA widget, but there is always an issue with the latest Firefox browser, detailed as follows:
add the plugin to a web page, which has other JS such as a dropdown menu
load the web page
keep loading the web page over and over, in an attempt to catch it 'half loaded'
eventually you will see for a split second an alert "The page at https://www.google.com says: Cannot contact reCAPTCHA. Check your connection and try again"
from now on, JavaScript is entirely broken until you restart the Firefox window
This never happens in Chrome, and appears to be Firefox only. I am surprised to not find any reports of this major issue with vendors Google and Firefox (unsure which party is to blame), so created this ticket.
This issue can be replicated on the official Google Invisible reCAPTCHA Demo by quickly reloading the page. This will eventually show the alert and break the entire demo, making all form inputs unresponsive until the Firefox window is closed and re-opened.
At the time of writing, I am using OSX Firefox 57.0.1 (64-bit) to replicate this issue, but has also been replicated on the same Firefox under Windows 10.
Update after valid comment from Federico, as this is being reported a lot but no solutions or workarounds that I can find: Google Groups Search
Is this a known issue and are there any plans to resolve from either Firefox or Google, or more importantly has anybody managed to put a workaround in place in the meantime?
I think the issue is resolved now. Try again and it is giving successful verification. I guess it was a bug which they fixed. If the problem still persists please try upgrading Firefox to the latest version.

Alert does not trigger, JS is not detected

I think I might be going crazy at this point. I had an ASP page working yesterday, and came in today to Firebug telling me it cannot detect the JavaScript on the page. Love it when things change after not touching them.
So I start trying to figure out what is happening. I tried slimming down the code, this answer, restarting Firefox, saving the page under a new name and loading the new one, and adding a ridiculous amount of code I generally consider unnecessary. I even tried removing everything from the page and changing it to this:
<script>
alert("yay");
</script>
Does not trigger alert, and Firebug says "No JavaScript on this page". I've been looking for explanations for almost 2 hours and cannot figure out what is happening. I know I did not deactivate anything because other pages will show JavaScript and function properly. I also know that no add-ons are causing it.
I am using Firefox 28.0 (also tried on 27.0.1). Opening the page in Chrome triggers the alert.
(Damn I meant to post this as a comment).
As you responded I'll re-popualate...
I create jsfiddle,
<body>
<script>
alert("yay");
</script>
</body>
Also ensure your browser has javascript enabled.
You should follow the instructions on the Firebug's first aid page.
I assume it's either some Firebug setting or a conflict with another extension. (I see at least YSlow and FlashFirebug installed.)
To check that you can create a new profile and just install Firebug.
Closing the tab and opening the same link in a new tab seemed to resolve the issue.
I'm not sure if any of the prior attempts factored in, so I will list them as well. To be clear, none of these worked, but may have paved the way in some fashion.
Restarting Firefox
"Clear Activation List" on Firebug
Save page under new filename and load the new page
Uninstalling add-ons (all of them)
Create new profile and load page on that profile
Add a <!DOCTYPE html> to the top
Add type="text/javascript" to script tags
Add charset="utf-8" to script tags
Add <meta charset="utf-8"> in <head>

Blocking IE inline popup ads

In IE (I'm testing on v.9), some text is automatically appended an anchor tag that contains advertising information.
In Firefox, this is not there. The site is pure html, but somehow IE is appending a link to it. It looks like this, a double-underlined link that is triggered on hover:
How can I get rid of this behavior, in either css or javascript? Thanks for any ideas!
This isn't a programming question: EasyInline is a Yontoo adware that can be removed by uninstalling Yontoo Layers or removing the IE Add-On. Try superuser.com for more help.
Adware is one of the dangerous threat and it creates several trouble on your PC as well as on the web browser. It generate various online advertisements and pop-up ads to attract PC users and clicking any of the related ads redirect you to malicious websites. To remove the popup ads read the given below link as it also helped me to remove the annoying popup ads from my PC.
http://www.tabortvirusspyware.com/radera-trojanproxywin32bunitu-f-hur-tar-man-bort-trojanproxywin32bunitu-f

JavaScript for iPhone to open in Safari from non-default iOS browser

"googlechrome://www.lego.com" opened in mobile Safari will switch to Google Chrome iOS app to open the URL. This allows for scriptlets like the one below, which allows you to open the current page in Google Chrome iOS app, switching from mobile Safari:
(function()%7Bif(document.location.href.indexOf('http')===0)document.location.href=document.location.href.replace(/%5Ehttp/,'googlechrome');%7D)();
My question is, can the reverse be done? I tried "safari://www.lego.com", and it is simply an invalid URL. Can you make a scriptlet which switches from Google Chrome to mobile Safari to open the current page.
The answer is yes. Courtesy or MacStories (http://www.macstories.net/tutorials/chrome-for-ios-send-a-webpage-back-to-safari-via-bookmarklet/), I found this code:
window.location='googlechrome-x-callback://x-callback-url/open/?url='+encodeURIComponent(location.href)+'&x-source=Safari&x-success='+encodeURIComponent(location.href);
Execute that code, go to your homescreen, reopen Chrome, and there's a magical back button to go back to Safari. This may not be exactly what you want, but it works... Kink of.
Good luck!
Update:
Here's a screenshot:
Link (Sorry, I don't have enough reputation to put it right in the post): http://i.stack.imgur.com/OR175.jpg
Update:
It seems that the functionality to do this has broken. Thank you!

I have found that just before the </head> tag I have <script id="__isTpiViewExists"></script>. Is this a virus?

In the HTML code just before the </head> tag I have this:
<script id="__isTpiViewExists"></script>
I never put it there. Is it possible to be a virus or something else?
Edit //
By using google chrome debugging tool in the Scripts section i have everypage_early.js // This content script get injected into every page, enabling us to inject the conduit commmunity toolbar into the DOM of the page.
Another note : In Firefox using firebug i dont have this script only when I use google chrome debugging tool,also if I right click and View Page Source.I dont have the script only in google chrome debugging tool.. so i think is not a virus just google add in there tool .. i dont know
This is the nasty nasty conduit toolbar which injects javascript into every page it visits in order to hjiack the behvaiour. If you see this, run MalwareBytes and another AV and uninstall all toolbars and update your system.

Categories