mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Updated a few more things
This commit is contained in:
parent
c827e9f7e1
commit
73cdcb3186
47 changed files with 35805 additions and 1102 deletions
12
lib/css/url-string.js
Normal file
12
lib/css/url-string.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
type: 'Url',
|
||||
condition: ({ value }) => value.type == 'String',
|
||||
rewrite: ({ value }, data) => {
|
||||
const quote = value.value.substring(0, 1);
|
||||
value.value = quote + data.ctx.url.wrap(value.value.slice(1).slice(0, -1), data.meta) + quote;
|
||||
},
|
||||
source: ({ value }, data) => {
|
||||
const quote = value.value.substring(0, 1);
|
||||
value.value = quote + data.ctx.url.unwrap(value.value.slice(1).slice(0, -1)) + quote;
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue