Greasy Fork is available in English.

Text Highlight and Seek

Automatically highlight user-defined text with Seek function (2019-09-22)

< Отзив за Text Highlight and Seek

Отзив: Отлично - скриптът работи

Hello, where can I find the json file in chrome? When trying to import more than 150 sets, the popup remains empty.Is it possible to change json directly? I'm using Tampermonkey.

Jefferson ScherАвтор
§
Публикуван на: 28.09.2021
Редактиран на: 28.09.2021

How far is it getting -- do you get the prompt to resolve conflicts? If you get nothing, maybe there is a limit on the JavaScript prompt() box and I need to build a form instead.

Tampermonkey has Dashboard > Utilities > Files > Export, which allows extracting your current sets, but this file is for the complete configuration (all of your scripts and their data), so I don't think it would be safe to edit and import.

As an experiment, I edited the code in Tampermonkey and replaced this part of line 702

prompt("Paste in the exported data and click OK to start parsing", "")

with the actual JSON I wanted to import (only 7 sets), between outer quotation marks ("JSON").

Then when I ran the import, it asked me whether I wanted to add them and it was able to do so. Worth a try? You can undo your edit after the experiment.

Публикувайте отговор

Влезте, за да публикувате отговор.