Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- 'use strict';
- function fix_url(){
- var share_url = document.getElementById("share-url");
- if(share_url){
- var url = new URL(share_url.value);
- url.searchParams.delete("si");
- share_url.value = url.toString();
- }
- }
- var observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (mutation.type === "attributes" && mutation.attributeName === "aria-checked") {
- fix_url();
- }
- });
- });
- observer.observe(document.body, { subtree: true, attributes: true });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement