gokubi / salesforce-id-clipper-chrome-extension Goto Github PK
View Code? Open in Web Editor NEWClip the Salesforce Id from the current record
Home Page: https://chrome.google.com/webstore/detail/hfiffenhnefppjhloglpebefjlbhoeai
Clip the Salesforce Id from the current record
Home Page: https://chrome.google.com/webstore/detail/hfiffenhnefppjhloglpebefjlbhoeai
This is a Chrome Extension that works with Salesforce.com. *Now updated to work with lightning and Communities!* If you are on a Salesforce.com record page, that is a page where the Salesforce.com URL conatins a record Id: * Click the scissors icon once to clip the Id to your clipboard. * Click it again and you'll get the 18 character verison of the id. * Click it again to get a cleaned version of the URL in the address bar. The icon turns green when you successfully clip the Id, and shows an 18 when you get the 18 character version and 'Link' when you get the link. You may also right click any link to a Salesforce.com record URL on any webpage and do two actions: * Clip the Id (15 or 18 characters), just as you would from a record page * Get a clean record URL, dropping any parameters after the Id, like search position * Works with Lightning * Works with Communities * Works with VF pages with an id on the querystring, and User profile pages. * Thanks to boxfoot and Jeff Douglas for code contributions! To install from Chrome Store: https://chrome.google.com/webstore/detail/hfiffenhnefppjhloglpebefjlbhoeai Source code is on github: https://github.com/gokubi/Salesforce-Id-Clipper-Chrome-Extension To install unpackaged: 1. Download the source to your computer 2. Go to Chrome 3. Window > Extensions 4. Click the + next to Developer Mode 5. Load unpacked extension 6. Browse to the downloaded directory
Options for Clipping Ids disappear after a short while. Uninstalling and reinstalling fix this temporarily.
I changed the regex to:
/([https?]://.*.salesforce.com/\w{15})/
It was matching but the http wasn't included in the clipped selection. I don't have time track it down right now.
Currently this requires access to all tabs and all urls, essentially granting the extension full access to all browsing activity and unlimited external communication. This leads to:
I haven't looked closely at how this is implemented yet, but it seems like using the activeTab permission, and/or limiting to force.com domains should be sufficient to achieve what this is doing.
Steve,
It looks like the link and 18 character captures are working properly, but the 15 character capture is pulling 18 characters. Any chance you can get that to work?
Thanks,
Erik
[email protected]
Communities URLs are force.com, not Salesforce.com, so they don't show up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.