开发者

executing the javascript code in address bar

开发者 https://www.devze.com 2022-12-18 14:23 出处:网络
I really don\'t know whether i am supposed to ask such question here or not. But anyways, I am trying to run the following javascript code on address bar*:

I really don't know whether i am supposed to ask such question here or not. But anyways,

I am trying to run the following javascript code on address bar*:

javascript:if ( document.getElementById('meebo') ) document.getElementById('meebo').style.display='none';

this meebo bar on any website is just an annoyance :x . Now the problem i am facing is, when i press return, it shows the page w开发者_开发知识库ith only 'none' written on it. Try it on http://www.hongkiat.com any website having meebo bar installed on it.

Another problem is, i want this code to be executed every time any page is displayed. I think we can do this using greasemonkey, but i am sure there will be another easier answer.

*by saying run on address bar, i mean copy the above code and paste it to address bar and hit return.


You need to wrap this in a function:

javascript:(function(){if(document.getElementById('meebo'))document.getElementById('meebo').style.display='none'})();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号