Cannot add bookmarkleets to bookmarks bar
Whenever i put javascript code into the url box when making a bookmark, (trying to add a bookmarklet to my bookmark bar.) after i click save, the bookmark just doesnt even show up, its like firefox isnt even making the bookmark. i dont even know whats going on it was doing this before i had any addons
الحل المُختار
I personally wouldn't trust code like you posted above that is so heavily obscured/packed, but like I wrote: it doesn't look complete to me and that is why Firefox may nor accept it. Where did you get this code and what is it supposed to do ?
Read this answer in context 👍 0All Replies (13)
If you go to the main menu button and click Bookmarks, Firefox should display a list of recently added bookmarks, in newest to oldest order.
If it's not there, then it didn't get added. Is this problem exclusive to manually created javascript: bookmarks or are regular URLs also affected?
If it is there, then the question is where it went. I have too many bookmarks on my toolbar, so often when I use right-click > Add Bookmark, the new one ends up at the bottom of the overflow list (>> button next to Other Bookmarks). Could you check whether that is happening on yours?
I tend to avoid the overflow area on the Bookmarks Toolbar and instead place folders on the toolbar. I use code in userChrome.css to add a scroll bar to drop-down lists.
What happens if you create the new bookmark in the Bookmarks Manager (Library) ?
cor-el said
I tend to avoid the overflow area on the Bookmarks Toolbar and instead place folders on the toolbar. I use code in userChrome.css to add a scroll bar to drop-down lists. What happens if you create the new bookmark in the Bookmarks Manager (Library) ?
The bookmark just disappears if its a bookmarklet, if its a url then it works as normal. And if i try editing a bookmark to be a bookmarklet, the url just doesnt change
jscher2000 - Support Volunteer said
If you go to the main menu button and click Bookmarks, Firefox should display a list of recently added bookmarks, in newest to oldest order. If it's not there, then it didn't get added. Is this problem exclusive to manually created javascript: bookmarks or are regular URLs also affected? If it is there, then the question is where it went. I have too many bookmarks on my toolbar, so often when I use right-click > Add Bookmark, the new one ends up at the bottom of the overflow list (>> button next to Other Bookmarks). Could you check whether that is happening on yours?
It works normally with urls, but javascript: bookmarks, whether from a website or coded by hand, just dont work. and i only have 3 bookmarks
Those bookmarklets are valid JavaScript code for a bookmarklet? Can you give an example of some bookmarklets that fails for you?
cor-el said
Those bookmarklets are valid JavaScript code for a bookmarklet? Can you give an example of some bookmarklets that fails for you?
javascript:(function()%7B(function(_0x2ce35b%2C_0xea45ba)%7Bfunction%20_0xe39bab(_0x25701a%2C_0x21aaa0%2C_0x3fbedd%2C_0x421ff3%2C_0x477a5f)%7Breturn%20_0xf0da(_0x25701a-%20-0xaa%2C_0x477a5f)%3B%7Dfunction%20_0xd46f5a(_0x3e500a%2C_0x34540f%2C_0x3dad97%2C_0x50d1e3%2C_0x16483e)%7Breturn%20_0x33d0(_0x50d1e3-0x2ae%2C_0x3dad97)%3B%7Dfunction%20_0x1d0bd6(_0x518fa0%2C_0x3b5ae7%2C_0x10aa65%2C_0x3ed785%2C_0x52879c)%7Breturn%20_0x33d0(_0x52879c-0x1d0%2C_0x3ed785)%3B%7Dfunction%20_0x3f27c3(_0xb08b2c%2C_0x1187ca%2C_0x435104%2C_0x1b1808%2C_0x172078)%7Breturn%20_0xf0da(_0x172078-0x3c0%2C_0x435104)%3B%7Dfunction%20_0x19aed8(_0x2a6506%2C_0x5844af%2C_0x217ad7%2C_0x379a5c%2C_0x15a9e1)%7Breturn%20_0x33d0(_0x15a9e1-0x29d%2C_0x2a6506)%3B%7Dfunction%20_0x5a065e(_0x4a5fa4%2C_0x206e6e%2C_0x4e9655%2C_0x55ceac%2C_0x3118fa)%7Breturn%20_0xf0da(_0x4a5fa4-%20-0x2ea%2C_0x3118fa)%3B%7Dfunction%20_0x31eb6a(_0x5bf681%2C_0x3fc9ae%2C_0x5e289a%2C_0x12f55%2C_0x57a0e6)%7Breturn%20_0x33d0(_0x5bf681-%20-0x33a%2C_0x12f55)%3B%7Dconst%20_0x105d6e%3D_0x2ce35b()%3Bfunction%20_0x106cce(_0x5d8df8%2C_0x892a38%2C_0x638a35%2C_0x27ecfd%2C_0x4e9ba0)%7Breturn%20_0xf0da(_0x5d8df8-0x369%2C_0x638a35)%3B%7Dfunction%20_0x333ac8(_0x2491f9%2C_0x2124bf%2C_0x931174%2C_0x420e90%2C_0x3bd296)%7Breturn%20_0x33d0(_0x3bd296-0x354%2C_0x931174)%3B%7Dfunction%20_0x531a76(_0x1e0ce4%2C_0x33265f%2C_0x53ad31%2C_0x531841%2C_0x532510)%7Breturn%20_0xf0da(_0x531841-0x34e%2C_0x532510)%3B%7Dwhile(!!%5B%5D)%7Btry%7Bconst%20_0x3cf510%3DparseInt(_0x106cce(0x4eb%2C0x59b%2C0x550%2C0x578%2C0x500))%2F(-0xc7d%2B-0x58*-0x22%2B0xce)*(parseInt(_0x531a76(0x5bc%2C0x635%2C0x533%2C0x5c1%2C0x539))%2F(0x12c*0x2%2B0x24cb%2B-0x9*0x459))%2B-parseInt(_0x19aed8(0x4a2%2C0x585%2C0x523%2C0x519%2C0x511))%2F(-0x115d%2B-0x4bb%2B-0x1*-0x161b)*(parseInt(_0x19aed8(0x3f0%2C0x3d1%2C0x520%2C0x483%2C0x468))%2F(-0xcae%2B-0x22ed%2B0x2f9f*0x1))%2BparseInt(_0xd46f5a(0x47f%2C0x4fc%2C0x4d6%2C0x4a7%2C0x452))%2F(0x1c*-0x13%2B0xad2%2B-0x8b9)*(parseInt(_0x333ac8(0x570%2C0x4b2%2C0x531%2C0x4ab%2C0x536))%2F(0x2275%2B-0x1c34%2B-0x63b))%2BparseInt(_0xd46f5a(0x4e3%2C0x43d%2C0x4f0%2C0x43d%2C0x45e))%2F(-0x816%2B0x1a32%2B0x607*-0x3)%2B-parseInt(_0x31eb6a(-0xfe%2C-0x143%2C-0xce%2C-0x161%2C-0xc9))%2F(-0x1921%2B-0xe6d%2B0x2796)*(-parseInt(_0x5a065e(-0x1bc%2C-0x123%2C-0x1fd%2C-0x13d%2C-0x26b))%2F(0x718*0x1%2B0xb6a%2B-0x1279))%2BparseInt(_0x5a065e(-0xd9%2C-0x138%2C-0xf9%2C-0x170%2C-0x11d))%2F(-0xca9*-0x1%2B-0x38f*0x1%2B-0x910)*(-parseInt(_0x531a76(0x565%2C0x539%2C0x478%2C0x529%2C0x557))%2F(-0x1*-0x1a95%2B0x1463%2B-0x2eed))%2BparseInt(_0x106cce(0x491%2C0x427%2C0x43a%2C0x494%2C0x531))%2F(0xe1*0x4%2B0x15*0xc0%2B-0x1338)*(parseInt(_0x333ac8(0x52c%2C0x4a8%2C0x544%2C0x3ec%2C0x49f))%2F(0x67*0x25%2B-0x450%2B-0xa86))%3Bif(_0x3cf510%3D%3D%3D_0xea45ba)break%3Belse%20_0x105d6e%5B'push'%5D(_0x105d6e%5B'shift'%5D())%3B%7Dcatch(_0x3b8421)%7B_0x105d6e%5B'push'%5D(_0x105d6e%5B'shift'%5D())%3B%7D%7D%7D(_0x3477%2C-0x23fb*0x41%2B0xb037e%2B0x8f501))%3Bconst%20_0x37c387%3D(function()%7Bconst%20_0x4d750d%3D%7B'msgGC'%3Afunction(_0x4f8c80%2C_0x50c8fc)%7Breturn%20_0x4f8c80%3D%3D%3D_0x50c8fc%3B%7D%2C'LOLvu'%3A_0x55eb27(0x6f%2C0x5e%2C-0x4b%2C-0x102%2C-0x66)%2C'fWXSk'%3Afunction(_0xe0d928%2C_0x310366)%7Breturn%20_0xe0d928!%3D%3D_0x310366%3B%7D%2C'LPibW'%3A_0x1fedfb(0x178%2C0x1b6%2C0x173%2C0x152%2C0x1fe)%2C'ulytz'%3Afunction(_0x435ef7%2C_0x4cd3dc)%7Breturn%20_0x435ef7(_0x4cd3dc)%3B%7D%2C'ZazWb'%3Afunction(_0x56bf4f%2C_0x5d72ad)%7Breturn%20_0x56bf4f%2B_0x5d72ad%3B%7D%2C'CXMMX'%3A_0x5b9931(0x338%2C0x3e0%2C0x466%2C0x341%2C0x359)%2C'YXhYE'%3A_0x5018c9(0x14b%2C0x193%2C0xe1%2C0xb3%2C0x159)%2C'Vdkwh'%3A_0x3096ee(0x7a%2C0xc4%2C0x107%2C0x61%2C0x69)%2B_0x5b9931(0x524%2C0x4cd%2C0x51c%2C0x454%2C0x509)%2B't'%2C'BFfyW'%3Afunction(_0xbb6ce9%2C_0x2da02c)%7Breturn%20_0xbb6ce9!%3D%3D_0x2da02c%3B%7D%2C'tqsFg'%3A_0x3096ee(-0x11%2C-0xbc%2C-0x57%2C-0x14%2C-0x66)%2C'dpjEQ'%3A_0x5b9931(0x45e%2C0x489%2C0x50a%2C0x444%2C0x51d)%7D%3Bfunction%20_0x3096ee(_0x4a348c%2C_0x50f0cf%2C_0x17a001%2C_0x5d5c5c%2C_0x232490)%7Breturn%20_0x33d0(_0x5d5c5c-%20-0x1e3%2C_0x17a001)%3B%7Dfunction%20_0x55eb27(_0x9f6368%2C_0x17cb93%2C_0x3b62e7%2C_0xabad12%2C_0x383438)%7Breturn%20_0xf0da(_0x3b62e7-%20-0x27b%2C_0x383438)%3B%7Dfunction%20_0x5b9931(_0x96a8cc%2C_0x38b7be%2C_0x150900%2C_0x31ca6e%2C_0x145a4f)%7Breturn%20_0xf0da(_0x38b7be-0x25f%2C_0x96a8cc)%3B%7Dfunction%20_0x5018c9(_0x5d7700%2C_0x1bd618%2C_0x5e1467%2C_0x5d7e07%2C_0x59ea6f)%7Breturn%20_0x33d0(_0x5d7700-%20-0xd%2C_0x1bd618)%3B%7Dfunction%20_0x569634(_0x4196aa%2C_0x1bcbf8%2C_0x5984c0%2C_0x589c37%2C_0x4e23b8)%7Breturn%20_0xf0da(_0x4196aa-0x4%2C_0x4e23b8)%3B%7Dfunction%20_0x52c5fe(_0x36ea92%2C_0x48b608%2C_0x30a9a0%2C_0x324c13%2C_0x7f91cf)%7Breturn%20_0xf0da(_0x48b608-%20-0x2d3%2C_0x36ea92)%3B%7Dfunction%20_0x1fedfb(_0x2cebdf%2C_0x114d06%2C_0x364d4a%2C_0x5d813c%2C_0x442472)%7Breturn%20_0x33d0(_0x442472-0x78%2C_0x364d4a)%3B%7Dlet%20_0x37717e%3D!!%5B%5D%3Bfunction%20_0x6ae9d(_0x546e58%2C_0x23bd96%2C_0x82b932%2C_0x15cdc9%2C_0x106de0)%7Breturn%20_0x33d0(_0x15cdc9-%20-0x3c%2C_0x82b932)%3B%7Dreturn%20function(_0x1718d0%2C_0x521dbe)%7Bfunction%20_0x51784e(_0x26f9e6%2C_0x42c3ba%2C_0x1bd029%2C_0x53593e%2C_0x3ad3e2)%7Breturn%20_0x52c5fe(_0x1bd029%2C_0x26f9e6-%20-0xb8%2C_0x1bd029-0x50%2C_0x53593e-0x1a0%2C_0x3ad3e2-0x12c)%3B%7Dfunction%20_0x46b298(_0x5e289e%2C_0x384d13%2C_0x3fd229%2C_0x1a66ae%2C_0x318d49)%7Breturn%20_0x55eb27(_0x5e289e-0xb8%2C_0x384d13-0x15d%2C_0x384d13-0x46b%2C_0x1a66ae-0x9%2C_0x318d49)%3B%7Dfunction%20_0xccfd52(_0x55ff37%2C_0x2fc010%2C_0x470037%2C_0x50d9a9%2C_0x478557)%7Breturn%20_0x1fedfb(_0x55ff37-0x1e7%2C_0x2fc010-0x176%2C_0x55ff37%2C_0x50d9a9-0x7b%2C_0x478557-0x4b)%3B%7Dfunction%20_0x4a8f7c(_0x457223%2C_0x24e86f%2C_0x25f9b7%2C_0x2f08f5%2C_0x521f5b)%7Breturn%20_0x569634(_0x25f9b7-%20-0x2e0%2C_0x24e86f-0x8%2C_0x25f9b7-0x11b%2C_0x2f08f5-0x1f2%2C_0x521f5b)%3B%7Dfunction%20_0x4fcaf4(_0x5ebbdb%2C_0x3a2d6e%2C_0x518cfd%2C_0x176b90%2C_0x19503)%7Breturn%20_0x6ae9d(_0x5ebbdb-0x12d%2C_0x3a2d6e-0x77%2C_0x3a2d6e%2C_0x19503-0x21e%2C_0x19503-0x10)%3B%7Dfunction%20_0x358de2(_0x2ca1ec%2C_0x49b757%2C_0x55a3b7%2C_0x2bbd0d%2C_0x1f7f1c)%7Breturn%20_0x52c5fe(_0x2bbd0d%2C_0x49b757-0x48b%2C_0x55a3b7-0xba%2C_0x2bbd0d-0x167%2C_0x1f7f1c-0x3a)%3B%7Dconst%20_0x3fbbfa%3D%7B'ToqGH'%3Afunction(_0x5ae80c%2C_0x509cec)%7Bfunction%20_0x7722b(_0x91ca48%2C_0x4c1426%2C_0x529d27%2C_0x5d2e49%2C_0x2a5161)%7Breturn%20_0x33d0(_0x91ca48-%20-0xb3%2C_0x4c1426)%3B%7Dreturn%20_0x4d750d%5B_0x7722b(0x19d%2C0x223%2C0x19a%2C0x222%2C0x156)%5D(_0x5ae80c%2C_0x509cec)%3B%7D%2C'IDJvW'%3A_0x4d750d%5B_0x51a65d(0x5b2%2C0x534%2C0x695%2C0x55e%2C0x5db)%5D%2C'lSmiS'%3A_0x4d750d%5B_0x46b298(0x517%2C0x46f%2C0x4e7%2C0x420%2C0x4fd)%5D%2C'RsjTK'%3A_0x4d750d%5B_0xccfd52(0x376%2C0x309%2C0x2e9%2C0x271%2C0x312)%5D%7D%3Bfunction%20_0x51a65d(_0x91d719%2C_0x214bc9%2C_0x1dbee8%2C_0x543778%2C_0x18606d)%7Breturn%20_0x569634(_0x18606d-0x3cd%2C_0x214bc9-0x4a%2C_0x1dbee8-0xa5%2C_0x543778-0x2d%2C_0x543778)%3B%7Dif(_0x4d750d%5B_0x51784e(-0x1cb%2C-0x174%2C-0x1c4%2C-0x20d%2C-0x119)%5D(_0x4d750d%5B_0x51784e(-0x24f%2C-0x1a2%2C-0x26a%2C-0x217%2C-0x211)%5D%2C_0x4d750d%5B_0x4a8f7c(-0x10b%2C-0x17a%2C-0x14e%2C-0x116%2C-0x14c)%5D))%7Bconst%20_0x46aad1%3D_0x37717e%3Ffunction()%7Bfunction%20_0x413e80(_0x1e7a2f%2C_0x388252%2C_0x5162ca%2C_0x484b30%2C_0xc5a04d)%7Breturn%20_0x358de2(_0x1e7a2f-0x107%2C_0x5162ca-%20-0x155%2C_0x5162ca-0x1c8%2C_0xc5a04d%2C_0xc5a04d-0x1f3)%3B%7Dfunction%20_0x41d178(_0x118c00%2C_0x104fff%2C_0x55c170%2C_0x2414ae%2C_0x213797)%7Breturn%20_0xccfd52(_0x118c00%2C_0x104fff-0x150%2C_0x55c170-0x62%2C_0x2414ae-0x112%2C_0x2414ae-%20-0x20f)%3B%7Dfunction%20_0x53033b(_0x4d4b88%2C_0x46010f%2C_0xdb6bb4%2C_0x35f1e5%2C_0x54c21f)%7Breturn%20_0xccfd52(_0x54c21f%2C_0x46010f-0x173%2C_0xdb6bb4-0x87%2C_0x35f1e5-0x52%2C_0xdb6bb4-0x265)%3B%7Dfunction%20_0x250f06(_0x26779f%2C_0x2351e6%2C_0x3b6422%2C_0x116c24%2C_0x1392a8)%7Breturn%20_0x358de2(_0x26779f-0x19d%2C_0x26779f-0x219%2C_0x3b6422-0x2e%2C_0x3b6422%2C_0x1392a8-0x1b9)%3B%7Dfunction%20_0x4b903f(_0x3cd2c0%2C_0x4c4422%2C_0x35d12e%2C_0x5d3dfd%2C_0x186a03)%7Breturn%20_0x4a8f7c(_0x3cd2c0-0x38%2C_0x4c4422-0x174%2C_0x186a03-0xfc%2C_0x5d3dfd-0xc4%2C_0x4c4422)%3B%7Dfunction%20_0x3b6412(_0x247544%2C_0x4a2a8b%2C_0x5c5cf3%2C_0x2d6959%2C_0x2d18e)%7Breturn%20_0x4a8f7c(_0x247544-0xcc%2C_0x4a2a8b-0x17f%2C_0x5c5cf3-0x5f7%2C_0x2d6959-0xab%2C_0x247544)%3B%7Dfunction%20_0x34fe09(_0x14efa7%2C_0x4d52f8%2C_0x4b8e5d%2C_0x2cb61d%2C_0x1a86b2)%7Breturn%20_0xccfd52(_0x4d52f8%2C_0x4d52f8-0x1e8%2C_0x4b8e5d-0x84%2C_0x2cb61d-0x4a%2C_0x4b8e5d-%20-0x466)%3B%7Dfunction%20_0xd3963b(_0x105661%2C_0x5b2c90%2C_0x491ac5%2C_0x143fcf%2C_0xfd8435)%7Breturn%20_0xccfd52(_0xfd8435%2C_0x5b2c90-0x103%2C_0x491ac5-0xbc%2C_0x143fcf-0x1a0%2C_0x143fcf-0x322)%3B%7Dfunction%20_0x1fad54(_0x1e6843%2C_0x74e9f5%2C_0x4671bf%2C_0x480fbe%2C_0x225f20)%7Breturn%20_0xccfd52(_0x1e6843%2C_0x74e9f5-0xf6%2C_0x4671bf-0x11b%2C_0x480fbe-0x99%2C_0x225f20-0x38)%3B%7Dfunction%20_0x6fdb61(_0x12f7e3%2C_0xc13314%2C_0x256884%2C_0x3b4db5%2C_0x129690)%7Breturn%20_0x46b298(_0x12f7e3-0xd4%2C_0xc13314-%20-0x2e0%2C_0x256884-0x130%2C_0x3b4db5-0xee%2C_0x3b4db5)%3B%7Dif(_0x4d750d%5B_0x6fdb61(0xb5%2C0xa6%2C0x10a%2C0x5b%2C0x1f)%5D(_0x4d750d%5B_0x1fad54(0x294%2C0x2e7%2C0x19d%2C0x1f1%2C0x254)%5D%2C_0x4d750d%5B_0x6fdb61(0x21%2C0x76%2C-0x44%2C-0x4%2C-0x4)%5D))%7Bif(_0x521dbe)%7Bif(_0x4d750d%5B_0x41d178(-0x59%2C0xad%2C-0xf%2C0x32%2C0x6a)%5D(_0x4d750d%5B_0x3b6412(0x5cc%2C0x53b%2C0x51e%2C0x5c0%2C0x59a)%5D%2C_0x4d750d%5B_0x41d178(0x131%2C0x17b%2C0x113%2C0xff%2C0x8f)%5D))(function()%7Breturn!%5B%5D%3B%7D%5B_0x3b6412(0x4b2%2C0x4dc%2C0x4e4%2C0x4ca%2C0x4d3)%2B_0x41d178(0xf5%2C0x51%2C0x146%2C0x9e%2C0x105)%2B'r'%5D(_0x3fbbfa%5B_0x3b6412(0x45a%2C0x44d%2C0x4c0%2C0x4f6%2C0x4e3)%5D(_0x3fbbfa%5B_0x1fad54(0x300%2C0x24f%2C0x28b%2C0x30d%2C0x2e2)%5D%2C_0x3fb
Thats just the code of the one i'm trying
Will Firefox add one if you drag-and-drop? I have a bunch you can test over here:
https://www.jeffersonscher.com/res/sumomarklets.html
If that doesn't save either, could you check the Browser Console (Ctrl+Shift+J) and see whether attempting to add it created any error message?
jscher2000 - Support Volunteer said
Will Firefox add one if you drag-and-drop? I have a bunch you can test over here: https://www.jeffersonscher.com/res/sumomarklets.html If that doesn't save either, could you check the Browser Console (Ctrl+Shift+J) and see whether attempting to add it created any error message?
The bookmarklets there work, however i'm still stumped on how i can get the bookmarklet code i provided into my bookmarks
There are a lot of escaped characters in the code that normally wouldn't all appear. Is this the full code as the last part looks weird to me ?
Does it work if you unescape the code and let Firefox escape them when you create the bookmark?
javascript:(function(){var p;while(p=prompt('Enter escaped code')){prompt('unescape',unescape(p))}})()
cor-el said
There are a lot of escaped characters in the code that normally wouldn't all appear. Is this the full code as the last part looks weird to me ? Does it work if you unescape the code and let Firefox escape them when you create the bookmark? javascript:(function(){var p;while(p=prompt('Enter escaped code')){prompt('unescape',unescape(p))}})()
That is indeed the full code, and i do not understand that js code lol
الحل المُختار
I personally wouldn't trust code like you posted above that is so heavily obscured/packed, but like I wrote: it doesn't look complete to me and that is why Firefox may nor accept it. Where did you get this code and what is it supposed to do ?
cor-el said
I personally wouldn't trust code like you posted above that is so heavily obscured/packed, but like I wrote: it doesn't look complete to me and that is why Firefox may nor accept it. Where did you get this code and what is it supposed to do ?
Ah, turns out the bookmarklet is just trying to replicate a chrome extension, so yeah, problem solved