Add `trusted-set-session-storage-item` scriptlet · gorhill/uBlock@f3d6a21 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit f3d6a21

Browse files
committed
Add trusted-set-session-storage-item scriptlet
Related discussion: uBlockOrigin/uAssets#20630 (comment)
1 parent a373efe commit f3d6a21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

assets/resources/scriptlets.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,19 @@ function trustedSetLocalStorageItem(key = '', value = '') {
38703870
setLocalStorageItemFn('local', true, key, value);
38713871
}
38723872

3873+
builtinScriptlets.push({
3874+
name: 'trusted-set-session-storage-item.js',
3875+
requiresTrust: true,
3876+
fn: trustedSetSessionStorageItem,
3877+
world: 'ISOLATED',
3878+
dependencies: [
3879+
'set-local-storage-item.fn',
3880+
],
3881+
});
3882+
function trustedSetSessionStorageItem(key = '', value = '') {
3883+
setLocalStorageItemFn('session', true, key, value);
3884+
}
3885+
38733886
/*******************************************************************************
38743887
*
38753888
* trusted-replace-fetch-response.js

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.