Updated eslint prettier and other files
This commit is contained in:
23
src/utils/bookmarklets/rbcSessionStorage.js
Normal file
23
src/utils/bookmarklets/rbcSessionStorage.js
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
/**
|
||||
* Deletes the 'fnc-rbc-session' property from the session storage if it exists.
|
||||
* If the property exists, it prompts the user for confirmation before deleting.
|
||||
* If the property does not exist, it displays an alert message.
|
||||
*/
|
||||
javascript: (function () {
|
||||
const rbcSession = sessionStorage.getItem('fnc-rbc-session');
|
||||
if (rbcSession) {
|
||||
const sessionValue = JSON.parse(rbcSession);
|
||||
let properties = '';
|
||||
for (const key in sessionValue) {
|
||||
properties += `${key}: ${sessionValue[key]}\n`;
|
||||
}
|
||||
const confirmDelete = confirm(`The properties in 'fnc-rbc-session' are:\n\n${properties}\nDo you want to delete 'fnc-rbc-session'?`);
|
||||
if (confirmDelete) {
|
||||
sessionStorage.removeItem('fnc-rbc-session');
|
||||
location.reload();
|
||||
}
|
||||
} else {
|
||||
alert("'fnc-rbc-session' does not exist in session storage.");
|
||||
}
|
||||
})();
|
||||
0
src/utils/importBookmarkMaker.js
Normal file
0
src/utils/importBookmarkMaker.js
Normal file
@@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
javascript: (function () {
|
||||
function setFlag(_flag, _state) {
|
||||
function setFlagSub(_url, _flag, _state) {
|
||||
|
||||
Reference in New Issue
Block a user