Skip to content

Commit

Permalink
handle v1.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 15, 2023
1 parent 4b45062 commit fd59952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scriptlets/remove-in-shadow-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {

/**
* @scriptlet remove-in-shadow-dom
*
* @description
* Removes elements inside open shadow DOM elements.
*
Expand All @@ -34,6 +35,8 @@ import {
* ! removes floating element
* virustotal.com#%#//scriptlet('remove-in-shadow-dom', 'vt-ui-contact-fab')
* ```
*
* @added v1.3.14.
*/
export function removeInShadowDom(source, selector, baseSelector) {
// do nothing if browser does not support ShadowRoot
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/set-cookie-reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {

/**
* @scriptlet set-cookie-reload
*
* @description
* Sets a cookie with the specified name and value, and path,
* and reloads the current page after the cookie setting.
Expand Down Expand Up @@ -44,6 +45,8 @@ import {
*
* example.org#%#//scriptlet('set-cookie-reload', 'cookie-set', 'true', 'none')
* ```
*
* @added v1.3.14.
*/
export function setCookieReload(source, name, value, path = '/') {
if (isCookieSetWithValue(document.cookie, name, value)) {
Expand Down

0 comments on commit fd59952

Please sign in to comment.