使用书签栏在当前页面上应用 Javascript
applying Javascript on current page using bookmark bar
我正在尝试使用书签栏在浏览器上显示的页面上应用 JavaScript,就像 link 中解释的方法一样:
https://www.tecdrop.com/iseepass/
我想在页面中隐藏一些东西,我试过这段代码
javascript:(function(){
document.getElementsById("someTable").style.display = 'none';
document.getElementsById("someTable").style.visibility = 'hidden';
})();
但这没有用。
顺便说一句:ID 为 someTable 的对象存在于我尝试使用的页面中。
document.getElementsById
不存在。这是getElementById
https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
我正在尝试使用书签栏在浏览器上显示的页面上应用 JavaScript,就像 link 中解释的方法一样: https://www.tecdrop.com/iseepass/
我想在页面中隐藏一些东西,我试过这段代码
javascript:(function(){
document.getElementsById("someTable").style.display = 'none';
document.getElementsById("someTable").style.visibility = 'hidden';
})();
但这没有用。
顺便说一句:ID 为 someTable 的对象存在于我尝试使用的页面中。
document.getElementsById
不存在。这是getElementById
https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById