Comments (1)
If you don't see the popup, it's because your browser popup blocker is active. A bookmarklet (or any other page scripts) can't open a popup without be executed by a user click in the page, else otherwise the popup will be blocked. Sadly this extension can't do anything for that
I clean up a bit the bookmarlet for intelligibility (remove comments and spaces) and fix the URL of Google calendar (for the event title part) and it works (if you click on blocked popup in the Yellow bar of Firefox):
javascript:var%20s;if(window.getSelection){s=window.getSelection();}else%20if(document.getSelection){s=document.getSelection();}else{s=document.selection.createRange().text;}if(s==''){prompt('QuickAdd');}var%20re=RegExp('[AaPp][Mm]');if%20(encodeURIComponent(s).match(re)){}else{var%20d=new%20Date();var%20hr=d.getHours();var%20min=d.getMinutes();if%20(min<10){min="0"+min;}s=s+"%20"+hr+":"+min;}void(window.open(encodeURI('https://www.google.com/calendar/event?text='+s+'&action=TEMPLATE&pprop=HowCreated:QUICKADD'),'addwindow','status=no,toolbar=no,width=520,height=470,resizable=yes'));
If you need to open the popup without been blocked, you need to rewrite this bookmarklet to show a button instead, then you could click on it to open the popup each time you use the bookmarklet
from bookmarklets-context-menu.
Related Issues (18)
- Not really an issue HOT 4
- Toolbar icon's menu is completely broken HOT 5
- Still blocked by CSP on github HOT 3
- How does it work? HOT 1
- Question about CSP and Mixed content for bookmarklets. HOT 1
- Some bookmarklets not shown in list HOT 1
- bookmarklet doesn't work correctly HOT 1
- #16 occurs again HOT 2
- Icon hard to see in dark mode.
- Big Bug ! HOT 3
- is it possible run executeScript on console ?
- Allow accessing the bookmarklets with a browser action HOT 3
- Palemoon support HOT 2
- Optional Cache? HOT 1
- Possible to work with this kind of bookmarklet code? HOT 2
- Squirt support? HOT 8
- Add UI to inject sources in CSP HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookmarklets-context-menu.