-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
98 additions
and
91 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import { moduleDefinition } from "../../moduleapi"; | ||
import { moduleDefinition } from '../../moduleapi' | ||
|
||
function remove_all_cookies() { | ||
var cookies = document.cookie.split(";"); | ||
var cookies = document.cookie.split(';') | ||
for (var i = 0; i < cookies.length; i++) { | ||
var cookie = cookies[i]; | ||
var eqPos = cookie.indexOf("="); | ||
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; | ||
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; | ||
var cookie = cookies[i] | ||
var eqPos = cookie.indexOf('=') | ||
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie | ||
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/' | ||
} | ||
} | ||
|
||
const plugin : moduleDefinition = { | ||
id: "clear_cookies", | ||
const plugin: moduleDefinition = { | ||
id: 'clear_cookies', | ||
custom_render: false, | ||
display_name: "Clear All Cookies", | ||
description: "Clears all cookies from this website", | ||
display_name: 'Clear All Cookies', | ||
description: 'Clears all cookies from this website', | ||
onactive: remove_all_cookies, | ||
reset: true, | ||
section: "js" | ||
section: 'js', | ||
} | ||
|
||
export default plugin; | ||
export default plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { moduleDefinition } from "../../moduleapi"; | ||
import { moduleDefinition } from '../../moduleapi' | ||
|
||
function clear_local_storage() { | ||
localStorage.clear(); | ||
} | ||
localStorage.clear() | ||
} | ||
|
||
const plugin : moduleDefinition = { | ||
id: "clear_storage", | ||
const plugin: moduleDefinition = { | ||
id: 'clear_storage', | ||
custom_render: false, | ||
display_name: "Clear All Local Storage Entries", | ||
description: "All data saved by car axle client will be removed as well!", | ||
display_name: 'Clear All Local Storage Entries', | ||
description: 'All data saved by car axle client will be removed as well!', | ||
onactive: clear_local_storage, | ||
reset: true, | ||
section: "js" | ||
section: 'js', | ||
} | ||
|
||
export default plugin; | ||
export default plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters