kopia lustrzana https://github.com/lartsch/FediAct
fix toot buttons in feed views when returning from redirect in "_self" mode, bump version
rodzic
f23e7be502
commit
0e20ff2f98
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "FediAct",
|
||||
"version": "0.9.8.6",
|
||||
"version": "0.9.8.7",
|
||||
"description": "Simplifies interactions on other Mastodon instances than your own. Visit https://github.com/lartsch/FediAct for more.",
|
||||
"manifest_version": 2,
|
||||
"content_scripts": [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "FediAct",
|
||||
"version": "0.9.8.6",
|
||||
"version": "0.9.8.7",
|
||||
"description": "Simplifies interactions on other Mastodon instances than your own. Visit https://github.com/lartsch/FediAct for more.",
|
||||
"manifest_version": 3,
|
||||
"content_scripts": [
|
||||
|
|
|
@ -194,6 +194,16 @@ function replaceAll(str, find, replace) {
|
|||
function redirectTo(url) {
|
||||
// check if redirects are enabled at all
|
||||
if (settings.fediact_redirects) {
|
||||
if (settings.fediact_target == "_self") {
|
||||
/* If browser back button was used, flush cache */
|
||||
(function () {
|
||||
window.onpageshow = function(event) {
|
||||
if (event.persisted) {
|
||||
window.location.reload();
|
||||
}
|
||||
};
|
||||
})()
|
||||
}
|
||||
// check if alert before redirect is enabled and show the prompt if so
|
||||
if (settings.fediact_alert) {
|
||||
if (!confirm("Redirecting to " + url)) {
|
||||
|
@ -878,6 +888,9 @@ async function processToots() {
|
|||
var actionExecuted = await executeAction(id, action, null)
|
||||
if (actionExecuted) {
|
||||
if (cacheIndex) {
|
||||
console.log(cacheIndex)
|
||||
console.log(tmpSettings.processed[cacheIndex])
|
||||
console.log(tmpSettings.processed)
|
||||
// set interacted to true
|
||||
tmpSettings.processed[cacheIndex][11] = true
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue