mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix column text cannot copy
This commit is contained in:
parent
f542dc690e
commit
c622bf3f37
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -116,7 +116,7 @@
|
||||
"scrollbar.min.css": "9792340121B6EE6E618A3F62AABD9C992D9C325803DF4879C8A74F02DA0E2213",
|
||||
"search.vue.min.js": "050019AC283F730181913EBE2D4AD0F89D6E1F0D607A06482652937946390B86",
|
||||
"seeds-to-coins.min.js": "31F9375D93CF291A332458311F0D8EE5B8019AD5380F6873EA46EB34C778C036",
|
||||
"selectable-column-text.min.js": "931664DCCD940803F78225160815C31C1F08BD8658E60CC76233DD9B323D0F02",
|
||||
"selectable-column-text.min.js": "C5ACD8936E9EC8D06A86D44B05B001718B6D73B128E2B147D91CB4643B2565FA",
|
||||
"settings-search.min.js": "C3B605AF2581F562415B6AA30F7B1D825A74EB0B2B83A5F17A303B7B5646E261",
|
||||
"settings-side-bar.min.js": "6CBC03ABE6E913FEF3AE09C9EAB67AD636C7E102F6F521ED273C5997103184B1",
|
||||
"settings-tooltip.en-US.min.js": "44BCE57BE4824F222BAF409B0A20635351A0713CC59C9417D655C0B9ED623A04",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
2
min/selectable-column-text.min.js
vendored
2
min/selectable-column-text.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,t)=>{const l=`.article-holder p { user-select: text }`;return t.toggleStyle(l,"selectable-column-text-style")}})();
|
||||
(()=>{return(e,t)=>{const n=`.article-holder { user-select: text !important }`;const r="selectable-column-text-style";const l=()=>{t.applyStyleFromText(n,r);SpinQuery.unsafeJquery().then(async()=>{await SpinQuery.select(".article-holder");unsafeWindow.$(".article-holder").unbind("copy")})};l();return{reload:l,unload:()=>{document.getElementById(r).remove()}}}})();
|
||||
@ -1,2 +1,16 @@
|
||||
const style = `.article-holder p { user-select: text }`
|
||||
export default resources.toggleStyle(style, 'selectable-column-text-style')
|
||||
const style = `.article-holder { user-select: text !important }`
|
||||
const id = 'selectable-column-text-style'
|
||||
const load = () => {
|
||||
resources.applyStyleFromText(style, id)
|
||||
SpinQuery.unsafeJquery().then(async () => {
|
||||
await SpinQuery.select('.article-holder')
|
||||
unsafeWindow.$('.article-holder').unbind('copy')
|
||||
})
|
||||
}
|
||||
load()
|
||||
export default {
|
||||
reload: load,
|
||||
unload: () => {
|
||||
document.getElementById(id).remove()
|
||||
},
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user