-
Describe the problem/questionI wish to remove the following code from the boostrap.php file on PrivateBin 1.7.3. The problem is that by removing the popup in the center of the webpage it instead becomes a web browser popup. If going about the removal of the popup after clicking the privatebin link is correct then how do I remove the web browser popup?
Did you use the FAQ section?
What you did?You put the "!--" before div × Put "--" at the end of div What happensThe pop-up goes away from the center of the screen but instead turns into a web browser pop-up What should happenThe button entire button should be removed. Additional informationNo response Server addressNo response Server OSUbuntu 22 Server WebserverApache2 PrivateBin versionv1.7.3 Browser and versionNo response Local operating system and versionNo response Issue reproducibilityNo, I cannot reproduce it on https://privatebin.net. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As you discovered, for templates that don't have modals (a bootstrap CSS specific widget type), we fall back to a classic pop-up dialogues, which will work in all cases. This behaviour is "baked in" (as of 1.7.0), not configurable and triggered if the paste URL is of the "burn-after-reading" type. If you don't want your paste to display that message, you can, on pastes that you created yourself, manually remove that dash ( If you wanted to revert this behaviour on your own instance, you'd have to comment or remove these lines in the JavaScript code and generate a fresh SRI-hash for the file: Lines 5450 to 5454 in 41369e2 Unlike a simple template change, that will require re-doing this effort upon every update. |
Beta Was this translation helpful? Give feedback.
-
As always, thank you El Rido.
…________________________________
From: El RIDO ***@***.***>
Sent: Thursday, July 25, 2024 11:09:33 AM
To: PrivateBin/PrivateBin ***@***.***>
Cc: chrish112 ***@***.***>; Author ***@***.***>
Subject: [ADV][EXT] Re: [PrivateBin/PrivateBin] Remove lodaconfirmmodal in bootstrap (Discussion #1381)
As you discovered, for templates that don't have modals (a bootstrap CSS specific widget type), we fall back to a classic pop-up dialogues, which will work in all cases. This behaviour is "baked in" (as of 1.7.0), not configurable and triggered if the paste URL is of the "burn-after-reading" type<https://github.com/PrivateBin/PrivateBin/wiki/Encryption-format#url-format-of-the-paste>.
If you don't want your paste to display that message, you can, on pastes that you created yourself, manually remove that dash (-) character after the hash / pound (#) character in the URL. When someone opens the URL without that dash, the paste will immediately get loaded and deleted on the server (the pre-1.7.0 behaviour).
If you wanted to revert this behaviour on your own instance, you'd have to comment or remove these lines in the JavaScript code and generate a fresh SRI-hash for the file<https://github.com/PrivateBin/PrivateBin/wiki/FAQ#how-to-make-privatebin-work-when-i-have-changed-some-javascript-files>:
https://github.com/PrivateBin/PrivateBin/blob/41369e28d56bbf971fac02d6821d8e56ed041936/js/privatebin.js#L5450-L5454
Unlike a simple template change, that will require re-doing this effort upon every update.
—
Reply to this email directly, view it on GitHub<#1381 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BGMFSARXIBV4NN6SRK3XDZ3ZOE5N3AVCNFSM6AAAAABLO6SDSGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGE4TONQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
As you discovered, for templates that don't have modals (a bootstrap CSS specific widget type), we fall back to a classic pop-up dialogues, which will work in all cases. This behaviour is "baked in" (as of 1.7.0), not configurable and triggered if the paste URL is of the "burn-after-reading" type.
If you don't want your paste to display that message, you can, on pastes that you created yourself, manually remove that dash (
-
) character after the hash / pound (#
) character in the URL. When someone opens the URL without that dash, the paste will immediately get loaded and deleted on the server (the pre-1.7.0 behaviour).If you wanted to revert this behaviour on your own instance, you'd have …