bookmarklet

Appended control's CSS

情到浓时终转凉″ 提交于 2019-12-13 00:18:58
问题 I've developed a JavaScript Bookmarklet that have appended div to the current page. But problem is that, when div and its content loaded because of pages' original CSS codes (Bookmarklet has its own CSS as well), my div's appearance corrupts. I mean, on every page, some of elements looks different (sometimes labels' heights, sometimes textarea's backgroundcolor, etc.) Is there a way to correct this fault that you know? It can be a CSS or JavaScript solution. 回答1: Is there any way to correct

Possible to run Javascript from address bar (bookmarklet) within Google Chrome's settings panel?

浪子不回头ぞ 提交于 2019-12-12 11:49:25
问题 I would like to make a bookmarklet to open google chrome's settings panel and clear my cache with a single click. For a while now, Ive had a bookmark that opens chrome's settings panel with the 'clear cache' setting already selected. After clicking the bookmark (normally opening it in a new tab) I have to then opent the tab and submit the form. However, when developing this is a task I have to do quite often and these several repeated steps just seem unnecessary. This link opens the page to

How can a bookmarklet access a Firefox extension (or vice versa)

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:42:50
问题 I have written a Firefox extension that catches when a particular URL is entered and does some stuff. My main app launches Firefox with this URL. The URL contains sensitive information so I don't want it being stored in the history. I'm concerned about the case where the extension is not installed. If its not installed and Firefox gets launched with the sensitive URL, it will get stored in history and there's nothing I can do about it. So my idea is to use a bookmarklet. I will launch Firefox

Revise bookmarklet to use the same copy from clipboard to process the clipboard contents and fill form

那年仲夏 提交于 2019-12-12 03:36:16
问题 I have found two bookmarlets that can take formatted text from the clipboard and fill a form on another page. This works even cross domain and cross browsers. The problem is that bookmarklet "B" cannot fill the same form that "A" can. Leaving the only real problem with bookmarklet "A" being that it has a paste the clipboard inbox that bookmarklet "B" doesn't have to show but falls back on if necessary. Good page to test these bookmarlets on: google.com/advanced_search Bookmarklet "A" Source:

Auto-load bookmarklet when in webpage as a Google Chrome extension

限于喜欢 提交于 2019-12-12 02:51:38
问题 Basically I made a bookmarklet, and I'd like it to run when a certain wildcarded URL is opened. For some reasons it won't simply run as javascript in a chrome extension, and I'm tired of trying. What I think could work is to make an extension that has a content_script for the specified page(s) (which allows a wildcard via match ), and somehow make it do the same thing that would be done if the user clicked the bookmarklet in the bookmarks bar . However, I do not know how to make this. One

Bookmarklet behind elements

假装没事ソ 提交于 2019-12-12 01:18:36
问题 I have a bookmarklet that will come up with a iframe that will load a web form I have. On most site, it works fine with the bookmarklet on top of every element in the current html page. But for certain sites with a lot of javascript loading (e.g. meebo.com), the loaded iframe will go below. How can i troubleshot this? Thanks. attached screen shot. 回答1: If you are using a positionable element such as a div, you should ensure the z-index style is set to a value higher then any other element. Of

Why does this bookmarklet JS code not work when put in an onclick handler?

岁酱吖の 提交于 2019-12-11 16:06:27
问题 I have a pretty typical bookmarklet code that's working perfectly for me in all browsers. However, when I take this code and put it in an HTML's element onClick handler, it doesn't work in IE (6, 7, or 8). This is the code: javascript: ( function(){ function l(i,u){ var d=document; var s; try{ s=d.standardCreateElement('script'); }catch(e){} if(typeof(s)!='object') s=d.createElement('script'); try{ s.type='text/javascript'; s.src='http://{Domain}/bk/' + u; s.id='s_' + i; d

JS - Modify bookmarklet for Google Translate

北慕城南 提交于 2019-12-11 09:48:11
问题 This page offers bookmarklets to be used with Google Translate http://translate.google.com/translate_buttons however those bookmarklets opens the Google Translate in same tab/window and replaces the original page. How to modify the bookrmarklet code (see bellow) to open in new window/tab? Also can somebody please briefly explains what the code is really doing. Thanks a lot. javascript: var t = ((window.getSelection && window.getSelection()) || (document.getSelection && document.getSelection()

Javascript | Link/Bookmarklet to replace current window location

只愿长相守 提交于 2019-12-11 06:46:08
问题 I often work with three variations of a web page, 1) a dev url, 2) a preview/staging url, and 3) and live url. I would like to create a link (bookmarklet?) that I can then add to my bookmarks bar that will change part of the URL string (basically everything before the page name) and then load the resulting URL in a new tab (or same tab if easier). Example: working on a page with the Dev URL: https://dev.mysite.com/cf#/content/www/page1.html I would like to be able to click the link and have

How to create a bookmarklet that submits a login form

房东的猫 提交于 2019-12-11 03:39:19
问题 I realize this isn't terrific from a security perspective but humor me. Is there a way to create a bookmarklet that submits a form, such as a login form. For example, this works, but only if there is a page loaded in the current browser window: javascript:(function(){document.body.innerHTML += '<form id=f action=https://www.mysite.com/login method=post><input type=hidden name=un value=uname><input type=hidden name=pw value=pword>';document.getElementById("f").submit();})(); Is there some way