-
-
Save Dan-cer/fc57e8b7fb326179edb39716a962a4ba to your computer and use it in GitHub Desktop.
// ==Description== | |
// Due to Chromium security updates, some Chrome extensions are currently not working in Vivaldi Sidebar. | |
// It also affects this script. | |
// It is a customization for using DeepL Translator as web-panel in Vivaldi Browser. | |
// It can be added like a chrome extension when you have activated developer mode for chrome extensions. | |
// The code can be modified to match your resolution or theme colors. | |
// Copy the code below from line 9 to end, save it to any directory as "deepl.user.js" and add the file by dragging it into | |
// vivaldi://extensions/ | |
// ==/Description== | |
// ==UserScript== | |
// @name deepl | |
// @version 0.2 | |
// @description deepl force 100% | |
// @author ml | |
// @match https://www.deepl.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var box=document.querySelector('.lmt__sides_wrapper'); | |
box.style.display = "block"; | |
Array.from( | |
document.querySelectorAll('.lmt__side_container') | |
).forEach(col => (col.style.width = "100%")); | |
})(); | |
Array.from( | |
document.querySelectorAll('.eSEOtericText, .dl_ad_pro_container, #lmt_quotes_article, .lmt__glossary_ad, .dl_footer, .dl_footerV2_container, .dl_body--redesign, .showSEOText, #dl_career_container') | |
).forEach(el => (el.style.display = "none")); | |
document.body.setAttribute('style', 'min-width: 430px; overflow-x: hidden; background-color: #C0DADC !important'); | |
document.querySelectorAll('.lmt--web .lmt__textarea_container').forEach(el => el.setAttribute('style', 'min-height: 200px; margin-bottom: 10px')); |
Again, no, the permalink is the one from my first comment.
The link you just shared, on the other hand, contains a commit ID, so it will always point to that commit, and never to newer ones.
OK, as you can see, I don't know anything about this. Just hearing what's wrong doesn't help me. Better would be a good tutorial on how to create a real permalink. I haven't been able to find such a guide anywhere.
You don't provide one either, as far as I can see. So make do with what I've provided here or give constructive hints that I can use.
Otherwise, I've updated my post in the forum each time. There you can also find the current script.
Better would be a good tutorial on how to create a real permalink.
Ok, here.
You don't provide one either, as far as I can see
Yes, the link from my first comment matches exactly that tutorial.
Update:
Added "#dl_career_container" for display: "none"
Due to Chromium security updates, some Chrome extensions are currently not working in Vivaldi Sidebar.
It also affects this script. It only works in tab at the moment.
OK, I deleted the repository and the permalink is here.