How to Disable a specific link using html or javascript - javascript

I am using a Gchat voice and video chat script. link to my website
The problem is that someone login in my chatroom and he use this flash link to crash users browser.
when he login all of us get disconnected and we have a blank black page at that time.
He must be using src="http://best-hosting.cu.cc/c/banner3-www-facebook-skype-net-com.swf" or iframe of that link somewhere when he is logging in.
Please help me. How can I disable that flash thing not to load in all users browsers
I get his links detect using ads block plus extension in firefox when he login with that flash link thing. when i block his link in ads block plus then i do not get disconnect but the other users who dont have ads block plus still get disconnect from website and have a blank black page.
Please suggest me something that will solve my problem.

You could try the accepted answer here: Find text and remove it jquery
Use it to find a string within the text and remove the entire thing.
I'd personally do: $('.className').contains('.swf').remove();​
Where className would be the class for links, or you could just do it for the <a> tag in general
EDIT: That being said, I have no idea what Gchat is, and whether or not this would be possible with it. If it is something hosted on your site it should work, but if it is embedded and hosted elsewhere, I'm not quite sure, worth a try though.

Related

How to found which script is run when i click anywhere in website?

Actually, I am working on a WordPress website and I use a theme for it. The problem is that daily I open first time my website and click anywhere in the body it open google ads in new browser window like facebook, jabong and all. So how to remove that. And also after every cleaning browser cookies and history process same issue, I get. Please let me know how to fix it and how to determine what function run when I click?
Thanks in Advance.

Possible to make webpage URL the same as an iFrame URL?

So I have an iFrame which I am using to load the other pages for my website. To make the website seem like it has no load time and very smooth I have made a main page, with an iFrame in the middle to load the actual pages of the website that contain all the information. I have buttons using JS to change the SRC of the iFrame so that it acts like a normal nav bar.
I am curious to know if it is possible to make the URL on the browser, the same as the URL in the iFrame. Because right now when a user is on the website, they aren't switching to different pages, meaning they can't go back or forward in history because they never left the page in the first place. This can be troubling to most users if they want to link their friends to something, or just go back a bit.
Is there a way to do this in jQuery or JavaScript? Or even better, purely in HTML or CSS?
Thanks in advance.
EDIT: After googling a bit of what charlietfl has said, I am now wondering if it is possible to save a website into states, which I can then give web URLs to? I just skimmed through a few pages without reading them thoroughly so I'm not exactly sure what it was talking about when it mentioned states, but maybe there is something else out there that is capable?
You can try url hash like the gmail uses #inbox . It has the same functionality as you wish. It serves you the browser back and forward actions. You have to add more Javascript to handle those hashes. But i am not sure about its effect on seo (if you are only concerning about it).
For more details please go through these links
Gmail like URL scheme
Browser History Manager

Imacros Creat facebook fanpages

I recorded an imacros script to creat a new facebook fanpage, but when i replay script, it aways showed: RuntimeError: element was not found. (Google search said: facebook random tags ID, buy Xpath also faild)
does anyone can help?
I have macros for creating and using fan pages automatically.
I have to update them every month or so because facebook changes the tags a lot!
1)Some tags change from refresh to refresh but its always one of 2-3 options so once you get them down its not that bad.
2) use experimental recording , it does a better job for some facebook elements
3) if you cant seem to work out the id tags use X/Y position for the problematic button.
4) The real problem with facebook comes later after you got the automation working. They stop loading random buttons and pages that they see you using with the automation and it is hard to overcome.

How to create an onclick cookie link and then after navigating to link's url, have that cookie redirect the current url

Okay, so this may sound confusing, so let me explain. I'm working with a theme in wordpress that has a single page layout and standalone page layouts. In the single page layout, every navbar link you click on scrolls you to a section of the page. In the standalone pages, when you click on a navbar link that contains content for the home page, it links you to a standalone page of that content rather than going to the home page and scrolling to the content.
Now before I get many answers saying just do url/#content block, it doesn't work as the theme creator decided to use multiple ids all named content. Horrible I know. I've tried a lot of things actually. So the idea I have now, is to store a cookie when the user clicks a link in the #header navbar and store a cookie in the browser. When the user reaches the homepage, the homepage checks that cookie and scrolls the to the proper area.
I've never worked with cookies to know how to write the code, I just understand how they work from php, I figure javascript is somewhat similar. If something is unclear, please ask.
You have 2 types of cookies, Http only and regular (you have more, but for this question the others are non relevant). Since here you are talking about creating cookies in JavaScript, the Http only cookies are non existent.
This javascript basic library will give you the tools to do what you want.
Now, from my own view of this problem, I would recommend using local storage only if your viewers are using new browsers (old IE won't work). This javascript library will explain how to use it.
Hope I helped, Cheers!

Facebook connect button of a drupal site doesn't work inside canvas app

I am building this drupal website which i want to include it inside a facebook canvas...
The problem is that it's functional outside facebook but not inside it.
here's the app canvas...
http://www.facebook.com/pages/Was-penelope/475770399104342?sk=app_346824075388300
Can you please tell me, how can this happen?
Thank you!
You’re trying to display the OAuth dialog within your iframe, which you can’t. (My browser [opera] shows an error saying that this page is not allowed to be displayed in an iframe.)
Just use FB.login to log your users in.
I am not sure what is not functional, or may be you already found a solution, but I can see the site when I navigate to that link.

Categories

Resources